munin-server: Move data directory to /export/munin

This commit is contained in:
Timo Makinen 2021-03-19 08:28:20 +00:00
parent 6c4d42341c
commit d43e4bfbe3
2 changed files with 24 additions and 0 deletions

View file

@ -1,4 +1,5 @@
dbdir /srv/munin
graph_strategy cgi
cgiurl_graph /munin-cgi/munin-cgi-graph
cgitmpdir /var/run/munin/cgi-tmp

View file

@ -4,6 +4,29 @@
name: munin
state: installed
- name: set file contexts for data directory
sefcontext:
path: "/export/munin(/.*)?"
setype: munin_var_lib_t
- name: create data direcory
file:
path: /export/munin
state: directory
mode: 0755
owner: munin
group: munin
setype: _default
- name: link data directory
file:
dest: /srv/munin
src: /export/munin
state: link
owner: root
group: "{{ ansible_wheel }}"
follow: false
# for some reason this is owned by adm default
- name: fix log directory group
file: