apache: cleanup munin tasks

This commit is contained in:
Jérémy Lecour 2017-08-12 12:51:15 -04:00 committed by Jérémy Lecour
parent 69ed3ecf05
commit a4b917152d
4 changed files with 33 additions and 0 deletions

View file

@ -13,5 +13,7 @@ apache_phpmyadmin_set: False
apache_phpmyadmin_suffix: ""
apache_serverstatus_suffix: ""
apache_munin_include: True
general_alert_email: "root@localhost"
log2mail_alert_email: Null

View file

@ -8,3 +8,8 @@
service:
name: apache2
state: reloaded
- name: reload munin-node
service:
name: munin-node
state: reloaded

View file

@ -169,3 +169,6 @@
# dest: /var/www/index.html
# regexp: '__SERVERSTATUS_SUFFIX__'
# replace: "{{ apache_serverstatus_suffix }}"
- include: munin.yml
when: apache_munin_include

23
apache/tasks/munin.yml Normal file
View file

@ -0,0 +1,23 @@
---
- name: munin-node and core plugins are installed
apt:
name: "{{ item }}"
state: installed
with_items:
- munin-node
- munin-plugins-core
- name: enable munin plugins
file:
src: "/usr/share/munin/plugins/{{ item }}"
dest: "/etc/munin/plugins/{{ item }}"
state: link
with_items:
- apache_accesses
- apache_processes
- apache_volume
notify: restart munin-node
tags:
- apache
- munin