Skip to content

Commit

Permalink
Merge pull request #809 from stackhpc/stop-services-playbook
Browse files Browse the repository at this point in the history
Add stop-openstack-services.yml playbook
  • Loading branch information
Alex-Welsh authored Dec 15, 2023
2 parents a0bddf5 + fe4c973 commit edd037b
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
29 changes: 29 additions & 0 deletions etc/kayobe/ansible/stop-openstack-services.yml
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
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.

0 comments on commit edd037b

Please sign in to comment.