-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #809 from stackhpc/stop-services-playbook
Add stop-openstack-services.yml playbook
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
# Stops containers running OpenStack services | ||
|
||
- name: Stop OpenStack services | ||
hosts: overcloud | ||
become: true | ||
gather_facts: false | ||
vars: | ||
- stop_service_list: | ||
- "blazar" | ||
- "barbican" | ||
- "cinder" | ||
- "cloudkitty" | ||
- "designate" | ||
- "glance" | ||
- "heat" | ||
- "horizon" | ||
- "ironic" | ||
- "keystone" | ||
- "magnum" | ||
- "manila" | ||
- "neutron" | ||
- "nova" | ||
- "octavia" | ||
- "placement" | ||
tasks: | ||
- name: Stop OpenStack services | ||
shell: >- | ||
docker ps -a | egrep '({{ stop_service_list | join('|') }})' | awk '{ print $NF }' | xargs docker stop |
5 changes: 5 additions & 0 deletions
5
releasenotes/notes/stop-services-playbook-b85b53d1a7571009.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
features: | ||
- | | ||
Added the ``stop-openstack-services.yml`` playbook, which can be used to | ||
stop OpenStack services across the overcloud. |