Add remove actions for keystone, mariadb, haproxy
This commit is contained in:
parent
a4153da9b6
commit
509529dcef
5
examples/resources/simple/haproxy/remove.yml
Normal file
5
examples/resources/simple/haproxy/remove.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
|
||||||
|
- hosts: [service/haproxy]
|
||||||
|
sudo: yes
|
||||||
|
tasks:
|
||||||
|
- shell: docker rm -f {{ name }} || true
|
@ -5,7 +5,6 @@
|
|||||||
- file: state=directory path=/etc/solar/{{name}}
|
- file: state=directory path=/etc/solar/{{name}}
|
||||||
# TODO Remove hardcoded path
|
# TODO Remove hardcoded path
|
||||||
- template: src=/vagrant/examples/resources/templates/haproxy.cfg.j2 dest=/etc/solar/{{name}}/haproxy.cfg backup=yes
|
- template: src=/vagrant/examples/resources/templates/haproxy.cfg.j2 dest=/etc/solar/{{name}}/haproxy.cfg backup=yes
|
||||||
- shell: docker rm -f {{name}} || true
|
|
||||||
- shell: docker run -d \
|
- shell: docker run -d \
|
||||||
--net="host" \
|
--net="host" \
|
||||||
--privileged \
|
--privileged \
|
||||||
|
5
examples/resources/simple/keystone/remove.yml
Normal file
5
examples/resources/simple/keystone/remove.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
|
||||||
|
- hosts: [service/keystone]
|
||||||
|
sudo: yes
|
||||||
|
tasks:
|
||||||
|
- shell: docker rm -f {{ name }} || true
|
@ -2,7 +2,6 @@
|
|||||||
- hosts: [service/keystone]
|
- hosts: [service/keystone]
|
||||||
sudo: yes
|
sudo: yes
|
||||||
tasks:
|
tasks:
|
||||||
- shell: docker rm -f {{name}} || true
|
|
||||||
# NOTE(eli): specify restart policy (--restart parameter) for
|
# NOTE(eli): specify restart policy (--restart parameter) for
|
||||||
# keystone conatiner if there are more than 2 keystone containers
|
# keystone conatiner if there are more than 2 keystone containers
|
||||||
# to be deployed, they both will perform db migration and will fail,
|
# to be deployed, they both will perform db migration and will fail,
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
|
|
||||||
- hosts: [mariadb]
|
- hosts: [service/mariadb]
|
||||||
sudo: yes
|
sudo: yes
|
||||||
tasks:
|
tasks:
|
||||||
- shell: docker stop {{ mariadb.name }}
|
- shell: docker rm -f {{ name }} || true
|
||||||
- shell: docker rm {{ mariadb.name }}
|
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
- hosts: [service/mariadb]
|
- hosts: [service/mariadb]
|
||||||
sudo: yes
|
sudo: yes
|
||||||
tasks:
|
tasks:
|
||||||
- shell: docker rm -f {{name}} || true
|
|
||||||
- shell: docker run \
|
- shell: docker run \
|
||||||
-d \
|
-d \
|
||||||
--net="host" \
|
--net="host" \
|
||||||
|
@ -20,5 +20,7 @@ run:
|
|||||||
- haproxy.actions.run
|
- haproxy.actions.run
|
||||||
|
|
||||||
remove:
|
remove:
|
||||||
|
- haproxy.actions.remove
|
||||||
|
- keystone.actions.remove
|
||||||
- mariadb.actions.remove
|
- mariadb.actions.remove
|
||||||
- docker.actions.remove
|
- docker.actions.remove
|
||||||
|
Loading…
x
Reference in New Issue
Block a user