-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcollectd-openstack.yml
49 lines (47 loc) · 1.43 KB
/
collectd-openstack.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
- hosts: undercloud
vars:
config_type: undercloud
roles:
- { role: common, when: collectd_undercloud }
- { role: epel, when: collectd_undercloud }
- { role: repo }
- { role: collectd-openstack, when: collectd_undercloud }
tasks:
- name: Collectd off if not collectd_undercloud
service: name=collectd state=stopped enabled=false
become: true
when: not collectd_undercloud
ignore_errors: true
environment: "{{proxy_env}}"
- hosts: controller
vars:
config_type: controller
roles:
- { role: osp_version }
- { role: common, when: collectd_controller }
- { role: epel, when: collectd_controller }
- { role: repo }
- { role: collectd-openstack, when: collectd_controller }
tasks:
- name: Collectd off if not collectd_controller
service: name=collectd state=stopped enabled=false
become: true
when: not collectd_controller
ignore_errors: true
environment: "{{proxy_env}}"
- hosts: compute
vars:
config_type: compute
roles:
- { role: osp_version }
- { role: common, when: collectd_compute }
- { role: epel, when: collectd_compute }
- { role: repo }
- { role: collectd-openstack, when: collectd_compute }
tasks:
- name: Collectd off if not collectd_compute
service: name=collectd state=stopped enabled=false
become: true
when: not collectd_compute
ignore_errors: true
environment: "{{proxy_env}}"