Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
71f4621e
Commit
71f4621e
authored
9 years ago
by
Edward Zarecor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better docs, tags
parent
9fc0c469
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
11 deletions
+27
-11
playbooks/roles/munin_node/tasks/main.yml
+27
-11
No files found.
playbooks/roles/munin_node/tasks/main.yml
View file @
71f4621e
...
...
@@ -9,17 +9,17 @@
#
#
#
# Tasks for role munin
-
node
# Tasks for role munin
_
node
#
# Overview:
#
#
# Dependencies:
# Install the munin-node monitoring daemon that is generally useful for system
# monitoring and is specifically used by the the MongoDB CloudManager monitoring
# agent to provide system metrics.
#
#
# 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
...
...
@@ -33,34 +33,50 @@
- install:system-requirements
with_items: munin_node_debian_pkgs
# Enable optional plugins for io metrics
-
name
:
link munin-node iostat
file
:
>
src="/usr/share/munin/plugins/iostat"
dest="/etc/munin/plugins/iostat"
state="link" owner=root group=root
tags
:
-
install
-
install:configuration
-
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
tags
:
-
install
-
install:configuration
-
name
:
copy munin iostat config
copy
:
>
src="munin-edx"
dest="/etc/munin/plugin-conf.d/munin-edx"
owner=root group=root mode="644"
tags
:
-
install
-
install:configuration
#
# Assumes a single allow line
#
# Requires libnet-cidr-perl included in the pkgs installed
# above
-
name
:
add source cidr
lineinfile
:
dest=/etc/munin/munin-node.conf
regexp='^cidr_allow'
line='cidr_allow {{ MUNIN_MONITOR_CIDR }}'
tags
:
-
install
-
install:configuration
-
name
:
restart munin-mode
service
:
>
name=munin-node
state=restarted
\ No newline at end of file
state=restarted
tags
:
-
install
-
install:configuration
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment