Commit 71f4621e by Edward Zarecor

Better docs, tags

parent 9fc0c469
...@@ -9,17 +9,17 @@ ...@@ -9,17 +9,17 @@
# #
# #
# #
# Tasks for role munin-node # Tasks for role munin_node
# #
# Overview: # Overview:
# #
# # Install the munin-node monitoring daemon that is generally useful for system
# Dependencies: # monitoring and is specifically used by the the MongoDB CloudManager monitoring
# # agent to provide system metrics.
# #
# Example play: # Example play:
# #
# ansible-playbook -u e0d -i '10.2.91.79,10.2.92.37,10.2.90.108,' ./run_role.yml -e "role=munin_node" # ansible-playbook -u my_user -i '192.168.100.10,192,168.100.11,' ./run_role.yml -e "role=munin_node"
# #
- name: install OS packages - name: install OS packages
...@@ -33,34 +33,50 @@ ...@@ -33,34 +33,50 @@
- install:system-requirements - install:system-requirements
with_items: munin_node_debian_pkgs with_items: munin_node_debian_pkgs
# Enable optional plugins for io metrics
- name: link munin-node iostat - name: link munin-node iostat
file: > file: >
src="/usr/share/munin/plugins/iostat" src="/usr/share/munin/plugins/iostat"
dest="/etc/munin/plugins/iostat" dest="/etc/munin/plugins/iostat"
state="link" owner=root group=root state="link" owner=root group=root
tags:
- install
- install:configuration
- name: link munin-node iostat-ios - name: link munin-node iostat-ios
file: > file: >
src="/usr/share/munin/plugins/iostat_ios" src="/usr/share/munin/plugins/iostat_ios"
dest="/etc/munin/plugins/iostat_ios" dest="/etc/munin/plugins/iostat_ios"
state="link" owner=root group=root state="link" owner=root group=root
tags:
- install
- install:configuration
- name: copy munin iostat config - name: copy munin iostat config
copy: > copy: >
src="munin-edx" src="munin-edx"
dest="/etc/munin/plugin-conf.d/munin-edx" dest="/etc/munin/plugin-conf.d/munin-edx"
owner=root group=root mode="644" owner=root group=root mode="644"
tags:
- install
- install:configuration
# #
# Assumes a single allow line # Assumes a single allow line
# # Requires libnet-cidr-perl included in the pkgs installed
# above
- name: add source cidr - name: add source cidr
lineinfile: lineinfile:
dest=/etc/munin/munin-node.conf dest=/etc/munin/munin-node.conf
regexp='^cidr_allow' regexp='^cidr_allow'
line='cidr_allow {{ MUNIN_MONITOR_CIDR }}' line='cidr_allow {{ MUNIN_MONITOR_CIDR }}'
tags:
- install
- install:configuration
- name: restart munin-mode - name: restart munin-mode
service: > service: >
name=munin-node name=munin-node
state=restarted state=restarted
tags:
- install
- install:configuration
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment