e77d651cd1
This patch fixes collectd installation for composable roles, and also optimises the collectd build process on computes. Change-Id: Icf358415312885c68879aa886a78f3ae1c163e91
83 lines
2.4 KiB
YAML
83 lines
2.4 KiB
YAML
---
|
|
#
|
|
# Playbook to stop collectd on undercloud/overcloud
|
|
#
|
|
# Stop on all undercloud/overcloud machines:
|
|
# ansible-playbook -i hosts.yml install/stop-collectd-baremetal.yml
|
|
#
|
|
# Or use tags:
|
|
# ansible-playbook -i hosts.yml install/stop-collectd-baremetal.yml --tag "undercloud"
|
|
# ansible-playbook -i hosts.yml install/stop-collectd-baremetal.yml --tag "controller"
|
|
# ansible-playbook -i hosts.yml install/stop-collectd-baremetal.yml --tag "networker"
|
|
# ansible-playbook -i hosts.yml install/stop-collectd-baremetal.yml --tag "blockstorage"
|
|
# ansible-playbook -i hosts.yml install/stop-collectd-baremetal.yml --tag "objectstorage"
|
|
# ansible-playbook -i hosts.yml install/stop-collectd-baremetal.yml --tag "cephstorage"
|
|
# ansible-playbook -i hosts.yml install/stop-collectd-baremetal.yml --tag "compute" -f 10
|
|
#
|
|
|
|
|
|
- hosts: Undercloud
|
|
remote_user: "{{ local_remote_user }}"
|
|
tasks:
|
|
- name: Stop Collectd on undercloud
|
|
service: name=collectd state=stopped enabled=false
|
|
become: true
|
|
ignore_errors: true
|
|
tags: undercloud
|
|
|
|
- hosts: Controller
|
|
strategy: free
|
|
remote_user: "{{ host_remote_user }}"
|
|
tasks:
|
|
- name: Stop Collectd on controller
|
|
service: name=collectd state=stopped enabled=false
|
|
become: true
|
|
ignore_errors: true
|
|
tags: controller
|
|
|
|
- hosts: Networker
|
|
remote_user: "{{ host_remote_user }}"
|
|
tasks:
|
|
- name: Stop Collectd on networker
|
|
service: name=collectd state=stopped enabled=false
|
|
become: true
|
|
ignore_errors: true
|
|
tags: networker
|
|
|
|
- hosts: BlockStorage
|
|
remote_user: "{{ host_remote_user }}"
|
|
tasks:
|
|
- name: Stop Collectd on blockstorage
|
|
service: name=collectd state=stopped enabled=false
|
|
become: true
|
|
ignore_errors: true
|
|
tags: blockstorage
|
|
|
|
- hosts: ObjectStorage
|
|
remote_user: "{{ host_remote_user }}"
|
|
tasks:
|
|
- name: Stop Collectd on objectstorage
|
|
service: name=collectd state=stopped enabled=false
|
|
become: true
|
|
ignore_errors: true
|
|
tags: objectstorage
|
|
|
|
- hosts: CephStorage
|
|
remote_user: "{{ host_remote_user }}"
|
|
tasks:
|
|
- name: Stop Collectd on cephstorage
|
|
service: name=collectd state=stopped enabled=false
|
|
become: true
|
|
ignore_errors: true
|
|
tags: cephstorage
|
|
|
|
- hosts: Compute*
|
|
strategy: free
|
|
remote_user: "{{ host_remote_user }}"
|
|
tasks:
|
|
- name: Stop Collectd on compute
|
|
service: name=collectd state=stopped enabled=false
|
|
become: true
|
|
ignore_errors: true
|
|
tags: compute
|