munin: from container to vm #155

Merged
mg merged 91 commits from muninvm into master 2024-08-12 23:46:09 +02:00
2 changed files with 4 additions and 30 deletions
Showing only changes of commit 805d2c8424 - Show all commits

View file

@ -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

View file

@ -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