Allow mariadb role to pull images
Change-Id: I9b453545126e9030406c9888a8210b254ebd3637 Partially-Implements: blueprint pre-pull-images
This commit is contained in:
parent
06356a8b0f
commit
bdc0f531e7
20
ansible/roles/mariadb/tasks/deploy.yml
Normal file
20
ansible/roles/mariadb/tasks/deploy.yml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
- include: config.yml
|
||||||
|
|
||||||
|
- include: bootstrap.yml
|
||||||
|
|
||||||
|
- include: start.yml
|
||||||
|
|
||||||
|
# We use register as a test to see whether the database is active and ready to
|
||||||
|
# communicate. This run on all hosts that have a database and attempts to talk
|
||||||
|
# to the local database rather than the vip,
|
||||||
|
- include: register.yml
|
||||||
|
|
||||||
|
# This will restart the container we initially used to bootstrap the cluster to
|
||||||
|
# make it match the other containers environment-wise. This also prevents a
|
||||||
|
# change from showing up when rerunning the playbooks
|
||||||
|
- include: start.yml
|
||||||
|
|
||||||
|
# Since the last start.yml may have recreated some containers we must wait and
|
||||||
|
# check the health again to ensure the hosts are active.
|
||||||
|
- include: register.yml
|
@ -1,20 +1,2 @@
|
|||||||
---
|
---
|
||||||
- include: config.yml
|
- include: "{{ action }}.yml"
|
||||||
|
|
||||||
- include: bootstrap.yml
|
|
||||||
|
|
||||||
- include: start.yml
|
|
||||||
|
|
||||||
# We use register as a test to see whether the database is active and ready to
|
|
||||||
# communicate. This run on all hosts that have a database and attempts to talk
|
|
||||||
# to the local database rather than the vip,
|
|
||||||
- include: register.yml
|
|
||||||
|
|
||||||
# This will restart the container we initially used to bootstrap the cluster to
|
|
||||||
# make it match the other containers environment-wise. This also prevents a
|
|
||||||
# change from showing up when rerunning the playbooks
|
|
||||||
- include: start.yml
|
|
||||||
|
|
||||||
# Since the last start.yml may have recreated some containers we must wait and
|
|
||||||
# check the health again to ensure the hosts are active.
|
|
||||||
- include: register.yml
|
|
||||||
|
7
ansible/roles/mariadb/tasks/pull.yml
Normal file
7
ansible/roles/mariadb/tasks/pull.yml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
- name: Pulling mariadb image
|
||||||
|
kolla_docker:
|
||||||
|
action: "pull_image"
|
||||||
|
common_options: "{{ docker_common_options }}"
|
||||||
|
image: "{{ mariadb_image_full }}"
|
||||||
|
when: inventory_hostname in groups['mariadb']
|
Loading…
Reference in New Issue
Block a user