Skip to content

Commit c741c1e

Browse files
committed
Move director munin-config into a separate role
1 parent 8b78430 commit c741c1e

File tree

4 files changed

+30
-27
lines changed

4 files changed

+30
-27
lines changed
File renamed without changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dependencies:
2+
- munin-node
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
- name: Install munin cps plugin
3+
copy:
4+
dest: /etc/munin/plugins/cps_1_0
5+
src: cps_
6+
mode: 0755
7+
notify: restart munin-node
8+
- name: Create munin cps plugin links
9+
file:
10+
src: /etc/munin/plugins/cps_1_0
11+
dest: "/etc/munin/plugins/cps_{{ item }}_0"
12+
state: link
13+
with_items:
14+
- 2
15+
- 3
16+
notify: restart munin-node
17+
- name: Configure munin cps plugin
18+
copy:
19+
dest: /etc/munin/plugin-conf.d/cps
20+
content: |
21+
[cps_1_0]
22+
env.graph_title Load balanced miscellaneous connections
23+
[cps_2_0]
24+
env.graph_title Load balanced Apache connections
25+
[cps_3_0]
26+
env.graph_title Load balanced SMTP connections
27+
notify: restart munin-node

ansible/scripts-directors.yml

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -48,35 +48,9 @@
4848
- lvs-iptables
4949
- lvs-lighttpd
5050
- lvs-ldirectord
51-
- munin-node
51+
- lvs-munin-node
5252
- nrpe
5353
tasks:
54-
- name: Install munin cps plugin
55-
copy:
56-
dest: /etc/munin/plugins/cps_1_0
57-
src: files/cps_
58-
mode: 0755
59-
notify: restart munin-node
60-
- name: Create munin cps plugin links
61-
file:
62-
src: /etc/munin/plugins/cps_1_0
63-
dest: "/etc/munin/plugins/cps_{{ item }}_0"
64-
state: link
65-
with_items:
66-
- 2
67-
- 3
68-
notify: restart munin-node
69-
- name: Configure munin cps plugin
70-
copy:
71-
dest: /etc/munin/plugin-conf.d/cps
72-
content: |
73-
[cps_1_0]
74-
env.graph_title Load balanced miscellaneous connections
75-
[cps_2_0]
76-
env.graph_title Load balanced Apache connections
77-
[cps_3_0]
78-
env.graph_title Load balanced SMTP connections
79-
notify: restart munin-node
8054
- name: Load IPVS modules
8155
copy:
8256
dest: /etc/modules-load.d/lvs.conf

0 commit comments

Comments
 (0)