diff options
| author | SamYaple <sam@yaple.net> | 2016-01-05 18:04:10 +0000 |
|---|---|---|
| committer | SamYaple <sam@yaple.net> | 2016-01-06 04:23:28 +0000 |
| commit | bdc0f531e71e271fb0ef4bac1bbc1763ba6cf46e (patch) | |
| tree | 5b2ab43f2cac6a403fc2f04dc8d296d421be1c9f | |
| parent | 06356a8b0f5a44a8b2f0ae2b89c813832e37b3dc (diff) | |
| download | kolla-bdc0f531e71e271fb0ef4bac1bbc1763ba6cf46e.tar.gz kolla-bdc0f531e71e271fb0ef4bac1bbc1763ba6cf46e.zip | |
Allow mariadb role to pull images
Change-Id: I9b453545126e9030406c9888a8210b254ebd3637
Partially-Implements: blueprint pre-pull-images
| -rw-r--r-- | ansible/roles/mariadb/tasks/deploy.yml | 20 | ||||
| -rw-r--r-- | ansible/roles/mariadb/tasks/main.yml | 20 | ||||
| -rw-r--r-- | ansible/roles/mariadb/tasks/pull.yml | 7 |
3 files changed, 28 insertions, 19 deletions
diff --git a/ansible/roles/mariadb/tasks/deploy.yml b/ansible/roles/mariadb/tasks/deploy.yml new file mode 100644 index 000000000..c13e4eb0a --- /dev/null +++ b/ansible/roles/mariadb/tasks/deploy.yml @@ -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 diff --git a/ansible/roles/mariadb/tasks/main.yml b/ansible/roles/mariadb/tasks/main.yml index c13e4eb0a..b017e8b4a 100644 --- a/ansible/roles/mariadb/tasks/main.yml +++ b/ansible/roles/mariadb/tasks/main.yml @@ -1,20 +1,2 @@ --- -- 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 +- include: "{{ action }}.yml" diff --git a/ansible/roles/mariadb/tasks/pull.yml b/ansible/roles/mariadb/tasks/pull.yml new file mode 100644 index 000000000..13d27693b --- /dev/null +++ b/ansible/roles/mariadb/tasks/pull.yml @@ -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'] |
