browbeat/ansible/install/collectd-openstack.yml
Alex Krzos f54470ee9d Break out collectd config files.
+ Trimmed down Ceph Process list
+ Added Graphite host type, consolidated all generic host types to single playbook collectd-generic (baremetal, guest, cfme, graphite, satellite6)

Change-Id: I2af61fc8dc507407dd7983e44cd3302713fd3ddd
2016-03-10 22:01:48 -05:00

57 lines
1.5 KiB
YAML

---
#
# Playbook to install collectd on undercloud/overcloud
#
- hosts: undercloud
remote_user: "{{ local_remote_user }}"
vars:
config_type: undercloud
roles:
- { role: common, when: collectd_undercloud }
- { 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
- hosts: controller
remote_user: "{{ host_remote_user }}"
vars:
config_type: controller
roles:
- { role: common, when: collectd_controller }
- { 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
- hosts: ceph
remote_user: "{{ host_remote_user }}"
vars:
config_type: ceph
roles:
- { role: common, when: collectd_ceph }
- { role: collectd-openstack, when: collectd_ceph }
tasks:
- name: Collectd off if not collectd_ceph
service: name=collectd state=stopped enabled=false
become: true
when: not collectd_ceph
- hosts: compute
remote_user: "{{ host_remote_user }}"
vars:
config_type: compute
roles:
- { role: common, when: collectd_compute }
- { 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