summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2016-05-22 17:18:45 +0200
committerGuilhem Moulin <guilhem@fripost.org>2016-05-22 17:53:58 +0200
commitf7a5a19edc504980e2e8f93ab027162756710d59 (patch)
tree05f45acdebe07683a12d03d5103f363b375e6ca7
parent82d27fabc7becba1d1ee7c24b331522f2330cae6 (diff)
Fix munin-cgi-graph systemd service file.
By allowing to place graphs into /var/lib/munin/cgi-tmp/munin-cgi-graph.
-rw-r--r--roles/munin-master/files/lib/systemd/system/munin-cgi-graph.service1
-rw-r--r--roles/munin-master/tasks/main.yml5
2 files changed, 6 insertions, 0 deletions
diff --git a/roles/munin-master/files/lib/systemd/system/munin-cgi-graph.service b/roles/munin-master/files/lib/systemd/system/munin-cgi-graph.service
index 99aca7a..60ab444 100644
--- a/roles/munin-master/files/lib/systemd/system/munin-cgi-graph.service
+++ b/roles/munin-master/files/lib/systemd/system/munin-cgi-graph.service
@@ -17,6 +17,7 @@ ProtectHome=yes
ProtectSystem=full
ReadOnlyDirectories=/
ReadWriteDirectories=-/var/log/munin
+ReadWriteDirectories=-/var/lib/munin/cgi-tmp/munin-cgi-graph
[Install]
WantedBy=multi-user.target
diff --git a/roles/munin-master/tasks/main.yml b/roles/munin-master/tasks/main.yml
index 64e697e..bcdc509 100644
--- a/roles/munin-master/tasks/main.yml
+++ b/roles/munin-master/tasks/main.yml
@@ -19,6 +19,11 @@
- meta: flush_handlers
+- name: Create directory /var/lib/munin/cgi-tmp/munin-cgi-graph
+ file: path=/var/lib/munin/cgi-tmp/munin-cgi-graph
+ state=directory
+ owner=www-data group=www-data
+ mode=0755
- name: Configure munin
template: src=etc/munin/munin.conf.j2