summaryrefslogtreecommitdiffstats
path: root/roles/amavis
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2015-06-10 15:35:13 +0200
committerGuilhem Moulin <guilhem@fripost.org>2015-06-10 18:37:19 +0200
commitb408390ae9311b7d703ce57c25a78dce23c31b16 (patch)
treed9b1c795c0ef8b75dbaef709aa8622863d636942 /roles/amavis
parenta82e3759627a0612592d853796f2a1137f9189f5 (diff)
Configure munin nodes & master.
Interhost communications are protected by stunnel4. The graphs are only visible on the master itself, and content is generated by Fast CGI.
Diffstat (limited to 'roles/amavis')
-rw-r--r--roles/amavis/handlers/main.yml3
-rw-r--r--roles/amavis/tasks/main.yml12
2 files changed, 15 insertions, 0 deletions
diff --git a/roles/amavis/handlers/main.yml b/roles/amavis/handlers/main.yml
index ab974e6..62cc6fc 100644
--- a/roles/amavis/handlers/main.yml
+++ b/roles/amavis/handlers/main.yml
@@ -8,3 +8,6 @@
- name: Restart Amavis
service: name=amavis state=restarted
+
+- name: Restart munin-node
+ service: name=munin-node state=restarted
diff --git a/roles/amavis/tasks/main.yml b/roles/amavis/tasks/main.yml
index a30772d..4009c05 100644
--- a/roles/amavis/tasks/main.yml
+++ b/roles/amavis/tasks/main.yml
@@ -71,3 +71,15 @@
- name: Start Amavis
service: name=amavis state=started
+
+
+- name: Install 'amavis' Munin plugin
+ file: src=/usr/share/munin/plugins/amavis
+ dest=/etc/munin/plugins/amavis
+ owner=root group=root
+ state=link force=yes
+ tags:
+ - munin
+ - munin-node
+ notify:
+ - Restart munin-node