browbeat/ansible/install/collectd-openstack.yml
akrzos de955f6dcf Updating collectd and dashboards for OSPd10
+ Undercloud adds Mistral and Zaqar services
+ Few small changes in the regexs to separate processes
+ Updated Undercloud and General Dashboards
+ Tracked what version I saw the processes (10)

Change-Id: If3d467c8f07884e1b76400f63227dfc11a82688b
2016-08-23 16:17:32 -04:00

79 lines
2.3 KiB
YAML

---
#
# Playbook to install collectd on undercloud/overcloud
#
# Install on all undercloud/overcloud machines:
# ansible-playbook -i hosts install/collectd-openstack.yml
#
# Or use tags:
# ansible-playbook -i hosts install/collectd-openstack.yml --tag "undercloud"
# ansible-playbook -i hosts install/collectd-openstack.yml --tag "controller"
# ansible-playbook -i hosts install/collectd-openstack.yml --tag "ceph"
# ansible-playbook -i hosts install/collectd-openstack.yml --tag "compute"
#
- hosts: undercloud
remote_user: "{{ local_remote_user }}"
vars:
config_type: undercloud
roles:
- { role: common, when: collectd_undercloud }
- { role: epel, 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
ignore_errors: true
tags: undercloud
- hosts: controller
remote_user: "{{ host_remote_user }}"
vars:
config_type: controller
roles:
- { role: common, when: collectd_controller }
- { role: epel, 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
ignore_errors: true
tags: controller
- hosts: ceph
remote_user: "{{ host_remote_user }}"
vars:
config_type: ceph
roles:
- { role: common, when: collectd_ceph }
- { role: epel, 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
ignore_errors: true
tags: ceph
- hosts: compute
remote_user: "{{ host_remote_user }}"
vars:
config_type: compute
roles:
- { role: common, when: collectd_compute }
- { role: epel, 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
ignore_errors: true
tags: compute