-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcollectd.yml
89 lines (82 loc) · 1.9 KB
/
collectd.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
- name: install collectd
hosts: all
tasks:
- include: roles/collectd/tasks/install.yml
sudo: yes
vars:
collectd_version: 5.5.0
tags:
- collectd
- collectd-server
- collectd-client
handlers:
- include: roles/collectd/handlers/main.yml
- name: Install common collectd plugins
hosts: all
tasks:
- include: roles/collectd/tasks/common-plugins.yml
tags:
- collectd
- collectd-server
- collectd-client
handlers:
- include: roles/collectd/handlers/main.yml
- name: install client collectd plugins
hosts: webservers:reportwebserver:dbservers:reportdbserver
tasks:
- include: roles/collectd/tasks/client-plugins.yml
tags:
- collectd
- collectd-client
handlers:
- include: roles/collectd/handlers/main.yml
- name: install server collectd plugins
hosts: health-monitor
tasks:
- include: roles/collectd/tasks/server-plugins.yml
tags:
- collectd
- collectd-server
handlers:
- include: roles/collectd/handlers/main.yml
- name: collectd webserver plugins
hosts: webservers
tasks:
- include: roles/collectd/tasks/webserver-plugins.yml
tags:
- collectd
- collectd-client
handlers:
- include: roles/collectd/handlers/main.yml
- name: collectd dbserver plugins
hosts: dbservers:reportdbserver
tasks:
- include: roles/collectd/tasks/db-plugins.yml
tags:
- collectd
- collectd-client
handlers:
- include: roles/collectd/handlers/main.yml
- name: install epel repository
hosts: health-monitor
become: yes
become_method: sudo
roles:
- epel
tags:
- epel
- collectd
- collectd-server
- name: install facette
hosts: health-monitor
tasks:
- include: roles/collectd/tasks/facette.yml
vars:
facette_port: 12003
tags:
- collectd
- facette
become: yes
become_method: sudo
handlers:
- include: roles/collectd/handlers/main.yml