munin-master: Fix graph generation from cgi script
This commit is contained in:
parent
f5782ad361
commit
6ef17adfa2
3 changed files with 42 additions and 1 deletions
|
@ -18,6 +18,13 @@
|
|||
groups: hostkey
|
||||
append: yes
|
||||
|
||||
# this needs better rule
|
||||
- name: fix selinux write errors
|
||||
seboolean:
|
||||
name: domain_can_mmap_files
|
||||
state: true
|
||||
persistent: true
|
||||
|
||||
- name: create apache config
|
||||
copy:
|
||||
dest: /etc/httpd/conf.local.d/munin.conf
|
||||
|
@ -27,6 +34,28 @@
|
|||
group: "{{ ansible_wheel }}"
|
||||
notify: restart apache
|
||||
|
||||
- name: fix selinx contexts from cache directory
|
||||
sefcontext:
|
||||
path: "/var/run/munin/cgi-tmp(/.*)?"
|
||||
setype: munin_rw_content_t
|
||||
|
||||
- name: add cache direcory to tmpfiles
|
||||
copy:
|
||||
dest: /etc/tmpfiles.d/munin.conf
|
||||
content: "d /run/munin/cgi-tmp 0755 apache apache -"
|
||||
mode: 0644
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
|
||||
- name: create cache directory
|
||||
file:
|
||||
path: /var/run/munin/cgi-tmp
|
||||
state: directory
|
||||
mode: 0755
|
||||
owner: apache
|
||||
group: apache
|
||||
setype: _default
|
||||
|
||||
- name: create tls config
|
||||
template:
|
||||
dest: /etc/munin/conf.d/00-tls.conf
|
||||
|
@ -35,6 +64,14 @@
|
|||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
|
||||
- name: create override config
|
||||
copy:
|
||||
dest: /etc/munin/conf.d/00-override.conf
|
||||
src: override.conf
|
||||
mode: 0644
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
|
||||
- name: remove localhost node
|
||||
file:
|
||||
path: /etc/munin/conf.d/local.conf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue