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
bceee98c
Unverified
Commit
bceee98c
authored
8 years ago
by
arbabnazar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
proper YAML syntax for ansible tasks
parent
8e202d61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
30 deletions
+36
-30
playbooks/roles/munin_node/tasks/main.yml
+36
-30
No files found.
playbooks/roles/munin_node/tasks/main.yml
View file @
bceee98c
...
@@ -22,41 +22,46 @@
...
@@ -22,41 +22,46 @@
# ansible-playbook -u my_user -i '192.168.100.10,192,168.100.11,' ./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
apt
:
>
apt
:
apt
:
pkg={{ item }}
name
:
"
{{
item
}}"
state=present
state
:
present
update_cache=yes
update_cache
:
yes
with_items
:
"
{{
munin_node_debian_pkgs
}}"
tags
:
tags
:
-
install
-
install
-
install:system-requirements
-
install:system-requirements
with_items: munin_node_debian_pkgs
# Enable optional plugins for io metrics
# 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
:
tags
:
-
install
-
install
-
install:configuration
-
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
:
tags
:
-
install
-
install
-
install:configuration
-
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
:
"
0644"
tags
:
tags
:
-
install
-
install
-
install:configuration
-
install:configuration
...
@@ -64,19 +69,19 @@
...
@@ -64,19 +69,19 @@
# Assumes a single allow line
# Assumes a single allow line
# Requires libnet-cidr-perl included in the pkgs installed
# Requires libnet-cidr-perl included in the pkgs installed
# above
# above
-
name
:
a
dd source cidr
-
name
:
A
dd 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
:
tags
:
-
install
-
install
-
install:configuration
-
install:configuration
-
name
:
r
estart munin-mode
-
name
:
R
estart munin-mode
service
:
>
service
:
name
=
munin-node
name
:
munin-node
state
=
restarted
state
:
restarted
tags
:
tags
:
-
install
-
install
-
install:configuration
-
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