summaryrefslogtreecommitdiff
path: root/roles/install_monitoring/tasks/install_munin.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/install_monitoring/tasks/install_munin.yml')
-rw-r--r--roles/install_monitoring/tasks/install_munin.yml55
1 files changed, 55 insertions, 0 deletions
diff --git a/roles/install_monitoring/tasks/install_munin.yml b/roles/install_monitoring/tasks/install_munin.yml
new file mode 100644
index 0000000..cf2bfc2
--- /dev/null
+++ b/roles/install_monitoring/tasks/install_munin.yml
@@ -0,0 +1,55 @@
+---
+- name: install munin
+ pacman:
+ name: munin-node
+ state: present
+
+- name: copy munin-node config
+ template:
+ src: munin-node.conf.j2
+ dest: /etc/munin/munin-node.conf
+
+- name: copy fastd plugin
+ copy:
+ src: munin/munin_fastd_plugin
+ dest: /usr/lib/munin/plugins/fastd_
+ mode: 0755
+
+- name: copy dhcp-pool plugin
+ copy:
+ src: munin/munin_dhcp_pool_plugin
+ dest: /usr/lib/munin/plugins/dhcp-pool
+ mode: 0755
+
+- name: copy fastd plugin config
+ copy:
+ src: munin/munin_fastd_conf
+ dest: /etc/munin/plugin-conf.d/fastd
+
+- name: copy global config
+ copy:
+ src: munin/munin_global_conf
+ dest: /etc/munin/plugin-conf.d/global
+
+- name: install netstat
+ pacman:
+ name: net-tools
+ state: present
+
+- name: install perl-lwp-protocol-https
+ pacman:
+ name: perl-lwp-protocol-https
+ state: present
+
+- name: enable munin plugins
+ file:
+ path: /etc/munin/plugins/{{ item.name }}
+ src: /usr/lib/munin/plugins/{{ item.plugin | default( item.name ) }}
+ state: link
+ with_items: "{{ munin_node_plugins }}"
+
+- name: start and enable munin-node
+ systemd:
+ name: munin-node.service
+ enabled: yes
+ state: started