Commit 2b22fb85 by Edward Zarecor

initial working code, needs docs

parent 5f0c2643
---
#
# edX Configuration
#
# github: https://github.com/edx/configuration
# wiki: https://github.com/edx/configuration/wiki
# code style: https://github.com/edx/configuration/wiki/Ansible-Coding-Conventions
# license: https://github.com/edx/configuration/blob/master/LICENSE.TXT
#
##
# Defaults for role munin-node
#
#
# vars are namespaced with the module name.
#
munin_node_role_name: munin-node
#
# OS packages
#
munin_node_debian_pkgs:
- "munin-node"
- "sysstat"
munin_node_redhat_pkgs: []
[iostat]
env.SHOW_NUMBERED 1
\ No newline at end of file
---
#
# edX Configuration
#
# github: https://github.com/edx/configuration
# wiki: https://github.com/edx/configuration/wiki
# code style: https://github.com/edx/configuration/wiki/Ansible-Coding-Conventions
# license: https://github.com/edx/configuration/blob/master/LICENSE.TXT
#
##
# Role includes for role munin-node
#
# Example:
#
# dependencies:
# - {
# role: my_role
# my_role_var0: "foo"
# my_role_var1: "bar"
# }
---
#
# edX Configuration
#
# github: https://github.com/edx/configuration
# wiki: https://github.com/edx/configuration/wiki
# code style: https://github.com/edx/configuration/wiki/Ansible-Coding-Conventions
# license: https://github.com/edx/configuration/blob/master/LICENSE.TXT
#
#
#
# Tasks for role munin-node
#
# Overview:
#
#
# Dependencies:
#
#
# Example play:
#
#
- name: install OS packages
apt: >
apt:
pkg={{ item }}
state=present
update_cache=yes
tags:
- install
- install:system-requirements
with_items: munin_node_debian_pkgs
- name: link munin-node iostat
file: >
src="/usr/share/munin/plugins/iostat"
dest="/etc/munin/plugins/iostat"
state="link" owner=root group=root
- name: link munin-node iostat-ios
file: >
src="/usr/share/munin/plugins/iostat_ios"
dest="/etc/munin/plugins/iostat_ios"
state="link" owner=root group=root
- name: copy munin iostat config
copy: >
src="munin-edx"
dest="/etc/munin/plugin-conf.d/munin-edx"
owner=root group=root mode="644"
- name: restart munin-mode
service: >
name=munin-node
state=restarted
\ 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