aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-01-06 08:22:47 +0000
committerGerrit Code Review <review@openstack.org>2016-01-06 08:22:48 +0000
commitd9762fe61ed6afc212fd8dbf586810b9be8713ab (patch)
treeb9fb00f28331aca297ebadf99d51ca5c66f8c099
parent0cf0ca01f4ab49efbacc4d511b2d809fd1c0e5cb (diff)
parente764e8522d0acdadda9c745a9f46b384b8aea368 (diff)
downloadkolla-d9762fe61ed6afc212fd8dbf586810b9be8713ab.tar.gz
kolla-d9762fe61ed6afc212fd8dbf586810b9be8713ab.zip
Merge "Allow murano role to pull images"
-rw-r--r--ansible/roles/murano/tasks/deploy.yml14
-rw-r--r--ansible/roles/murano/tasks/main.yml14
-rw-r--r--ansible/roles/murano/tasks/pull.yml14
3 files changed, 29 insertions, 13 deletions
diff --git a/ansible/roles/murano/tasks/deploy.yml b/ansible/roles/murano/tasks/deploy.yml
new file mode 100644
index 000000000..13d644732
--- /dev/null
+++ b/ansible/roles/murano/tasks/deploy.yml
@@ -0,0 +1,14 @@
+---
+- include: register.yml
+ when: inventory_hostname in groups['murano-api']
+
+- include: config.yml
+ when: inventory_hostname in groups['murano-api'] or
+ inventory_hostname in groups['murano-engine']
+
+- include: bootstrap.yml
+ when: inventory_hostname in groups['murano-api']
+
+- include: start.yml
+ when: inventory_hostname in groups['murano-api'] or
+ inventory_hostname in groups['murano-engine']
diff --git a/ansible/roles/murano/tasks/main.yml b/ansible/roles/murano/tasks/main.yml
index 13d644732..b017e8b4a 100644
--- a/ansible/roles/murano/tasks/main.yml
+++ b/ansible/roles/murano/tasks/main.yml
@@ -1,14 +1,2 @@
---
-- include: register.yml
- when: inventory_hostname in groups['murano-api']
-
-- include: config.yml
- when: inventory_hostname in groups['murano-api'] or
- inventory_hostname in groups['murano-engine']
-
-- include: bootstrap.yml
- when: inventory_hostname in groups['murano-api']
-
-- include: start.yml
- when: inventory_hostname in groups['murano-api'] or
- inventory_hostname in groups['murano-engine']
+- include: "{{ action }}.yml"
diff --git a/ansible/roles/murano/tasks/pull.yml b/ansible/roles/murano/tasks/pull.yml
new file mode 100644
index 000000000..5f979e56a
--- /dev/null
+++ b/ansible/roles/murano/tasks/pull.yml
@@ -0,0 +1,14 @@
+---
+- name: Pulling murano-api image
+ kolla_docker:
+ action: "pull_image"
+ common_options: "{{ docker_common_options }}"
+ image: "{{ murano_api_image_full }}"
+ when: inventory_hostname in groups['murano-api']
+
+- name: Pulling murano-engine image
+ kolla_docker:
+ action: "pull_image"
+ common_options: "{{ docker_common_options }}"
+ image: "{{ murano_engine_image_full }}"
+ when: inventory_hostname in groups['murano-engine']