From 805d2c8424f45cb34bc3ccc0decac75da44c784e Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Mon, 12 Aug 2024 13:14:50 +0200 Subject: [PATCH] dd --- roles/mgrote_munin_server/defaults/main.yml | 4 +++ roles/mgrote_munin_server/tasks/main.yml | 30 --------------------- 2 files changed, 4 insertions(+), 30 deletions(-) diff --git a/roles/mgrote_munin_server/defaults/main.yml b/roles/mgrote_munin_server/defaults/main.yml index eb8ac3ab..2531d96e 100644 --- a/roles/mgrote_munin_server/defaults/main.yml +++ b/roles/mgrote_munin_server/defaults/main.yml @@ -18,6 +18,10 @@ munin_servername: "{{ ansible_fwdn }}" munin_dirs: - /var/run/munin - /etc/munin/plugins + - /var/cache/munin/www + - /var/lib/munin/cgi-tmp + - /var/lib/munin + - /var/cache/munin munin_server_plugins: - munin_stats - munin_update diff --git a/roles/mgrote_munin_server/tasks/main.yml b/roles/mgrote_munin_server/tasks/main.yml index 5ea07e57..ac6bb564 100644 --- a/roles/mgrote_munin_server/tasks/main.yml +++ b/roles/mgrote_munin_server/tasks/main.yml @@ -98,33 +98,3 @@ fi owner: munin group: munin when: not placeholder.stat.exists - - - - -# ensure munin folder exist and have right permission -mkdir -p /var/lib/munin/cgi-tmp /var/cache/munin/www -chown -R munin:munin /var/lib/munin /var/cache/munin -chmod -R ugo+rw /var/lib/munin/cgi-tmp -chown munin:munin /var/log/munin/munin-graph.log -chown munin:munin /var/log/munin/munin-limits.log -chown munin:munin /var/log/munin/munin-html.log - -# start cron -/usr/sbin/cron & - -# start local munin-node -/usr/sbin/munin-node > /dev/null 2>&1 & - -# confirm nodes -echo "Using the following munin nodes:" -echo " $THISNODENAME" -echo " $NODES" - -# start apache -/usr/sbin/apache2ctl start - -# display logs -touch /var/log/munin/munin-update.log -chown munin:munin /var/log/munin/munin-update.log -tail -f /var/log/munin/munin-*.log