Allow adjustment playbook to be executed per service
Currently the playbook exectures all the roles. Changing it to execute a role per service based on extra var. Change-Id: I42bdb58d618e85c4301040b72f512898749f20e5
This commit is contained in:
parent
8301081b69
commit
a4d15f8c71
@ -6,10 +6,10 @@
|
|||||||
# ansible-playbook -i hosts browbeat/adjustment-workers.yml -e "workers=12"
|
# ansible-playbook -i hosts browbeat/adjustment-workers.yml -e "workers=12"
|
||||||
#
|
#
|
||||||
# Change Workers Example and change Keystone Threads (If deployed in httpd)
|
# Change Workers Example and change Keystone Threads (If deployed in httpd)
|
||||||
# ansible-playbook -i hosts browbeat/adjustment-workers.yml -e "workers=12 threads=1"
|
# ansible-playbook -i hosts browbeat/adjustment-workers.yml -e "service=keystone workers=12 threads=1"
|
||||||
#
|
#
|
||||||
# Change Workers and Keystone Deployment Example:
|
# Change Workers and Keystone Deployment Example:
|
||||||
# ansible-playbook -i hosts browbeat/adjustment-workers.yml -e "workers=12 keystone_deployment=httpd"
|
# ansible-playbook -i hosts browbeat/adjustment-workers.yml -e "service=keystone workers=12 keystone_deployment=httpd"
|
||||||
#
|
#
|
||||||
|
|
||||||
- hosts: controller
|
- hosts: controller
|
||||||
@ -32,7 +32,7 @@
|
|||||||
debug: msg="keystone_deployment is not set therefore not changing keystone deployment"
|
debug: msg="keystone_deployment is not set therefore not changing keystone deployment"
|
||||||
when: keystone_deployment is undefined
|
when: keystone_deployment is undefined
|
||||||
roles:
|
roles:
|
||||||
- keystone-workers
|
- { role: keystone-workers, when: service == "keystone" }
|
||||||
- nova-workers
|
- { role: nova-workers, when: service == "nova" }
|
||||||
- neutron-workers
|
- { role: neutron-workers, when: service == "neutron" }
|
||||||
- cinder-workers
|
- { role: cinder-workers, when: service == "cinder" }
|
||||||
|
Loading…
Reference in New Issue
Block a user