From f7a5a19edc504980e2e8f93ab027162756710d59 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sun, 22 May 2016 17:18:45 +0200 Subject: Fix munin-cgi-graph systemd service file. By allowing to place graphs into /var/lib/munin/cgi-tmp/munin-cgi-graph. --- roles/munin-master/files/lib/systemd/system/munin-cgi-graph.service | 1 + roles/munin-master/tasks/main.yml | 5 +++++ 2 files changed, 6 insertions(+) (limited to 'roles/munin-master') 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 -- cgit v1.2.3