diff options
author | Niklas Yann Wettengel <niyawe@niyawe.de> | 2017-03-20 21:09:02 +0100 |
---|---|---|
committer | Niklas Yann Wettengel <niyawe@niyawe.de> | 2017-03-20 21:09:02 +0100 |
commit | 56670cd032559ea715cc3186ad0adbd33dd3a887 (patch) | |
tree | 80ab7f2fd5927de5b77fd16ccd1b52fa6446c432 /roles/install_monitoring/tasks/install_munin.yml | |
parent | 354f025149be9923441af9f64cf153b21f46aff5 (diff) |
install_monitoring: split different monitoring solutions into different task files
Diffstat (limited to 'roles/install_monitoring/tasks/install_munin.yml')
-rw-r--r-- | roles/install_monitoring/tasks/install_munin.yml | 55 |
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 |