Skip to content

Commit 6ebfcac

Browse files
committed
Add stop-openstack-services.yml playbook
1 parent 58d6372 commit 6ebfcac

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
# Stops containers running OpenStack services
3+
4+
- name: Stop OpenStack services
5+
hosts: overcloud
6+
become: true
7+
gather_facts: false
8+
vars:
9+
- stop_service_list:
10+
- "blazar"
11+
- "barbican"
12+
- "cinder"
13+
- "cloudkitty"
14+
- "designate"
15+
- "heat"
16+
- "ironic"
17+
- "keystone"
18+
- "magnum"
19+
- "manila"
20+
- "neutron"
21+
- "nova"
22+
- "octavia"
23+
tasks:
24+
- name: Stop OpenStack services
25+
shell: >-
26+
docker ps -a | egrep '({{ stop_service_list | join('|') }})' | awk '{ print $NF }' | xargs docker stop
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
features:
3+
- |
4+
Added the ``stop-openstack-services.yml`` playbook, which can be used to
5+
stop OpenStack services across the overcloud.

0 commit comments

Comments
 (0)