aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-01-05 11:36:24 +0000
committerGerrit Code Review <review@openstack.org>2016-01-05 11:36:24 +0000
commitc8bc8fdb1bb3c6fa972316991007a112035070ef (patch)
tree69b99820bdd3337baf9e37c15b000feb4aae22d3
parent900bc1ed026d839081d7cc2d40c702979ca6757e (diff)
parentcba75b4084d00c892157a6bae3421106e935fa62 (diff)
downloadkolla-c8bc8fdb1bb3c6fa972316991007a112035070ef.tar.gz
kolla-c8bc8fdb1bb3c6fa972316991007a112035070ef.zip
Merge "Allow ceph role to pull images"
-rw-r--r--ansible/roles/ceph/tasks/deploy.yml21
-rw-r--r--ansible/roles/ceph/tasks/main.yml21
-rw-r--r--ansible/roles/ceph/tasks/pull.yml21
3 files changed, 43 insertions, 20 deletions
diff --git a/ansible/roles/ceph/tasks/deploy.yml b/ansible/roles/ceph/tasks/deploy.yml
new file mode 100644
index 000000000..403265af7
--- /dev/null
+++ b/ansible/roles/ceph/tasks/deploy.yml
@@ -0,0 +1,21 @@
+---
+- include: config.yml
+
+- include: bootstrap_mons.yml
+ when: inventory_hostname in groups['ceph-mon']
+
+- include: distribute_keyrings.yml
+
+- include: start_mons.yml
+ when: inventory_hostname in groups['ceph-mon']
+
+- include: bootstrap_osds.yml
+ when: inventory_hostname in groups['ceph-osd']
+
+- include: start_osds.yml
+ when: inventory_hostname in groups['ceph-osd']
+
+- include: start_rgws.yml
+ when:
+ - inventory_hostname in groups['ceph-rgw']
+ - enable_ceph_rgw | bool
diff --git a/ansible/roles/ceph/tasks/main.yml b/ansible/roles/ceph/tasks/main.yml
index 403265af7..b017e8b4a 100644
--- a/ansible/roles/ceph/tasks/main.yml
+++ b/ansible/roles/ceph/tasks/main.yml
@@ -1,21 +1,2 @@
---
-- include: config.yml
-
-- include: bootstrap_mons.yml
- when: inventory_hostname in groups['ceph-mon']
-
-- include: distribute_keyrings.yml
-
-- include: start_mons.yml
- when: inventory_hostname in groups['ceph-mon']
-
-- include: bootstrap_osds.yml
- when: inventory_hostname in groups['ceph-osd']
-
-- include: start_osds.yml
- when: inventory_hostname in groups['ceph-osd']
-
-- include: start_rgws.yml
- when:
- - inventory_hostname in groups['ceph-rgw']
- - enable_ceph_rgw | bool
+- include: "{{ action }}.yml"
diff --git a/ansible/roles/ceph/tasks/pull.yml b/ansible/roles/ceph/tasks/pull.yml
new file mode 100644
index 000000000..fde080f96
--- /dev/null
+++ b/ansible/roles/ceph/tasks/pull.yml
@@ -0,0 +1,21 @@
+---
+- name: Pulling ceph-mon image
+ kolla_docker:
+ action: "pull_image"
+ common_options: "{{ docker_common_options }}"
+ image: "{{ ceph_mon_image_full }}"
+ when: inventory_hostname in groups['ceph-mon']
+
+- name: Pulling ceph-osd image
+ kolla_docker:
+ action: "pull_image"
+ common_options: "{{ docker_common_options }}"
+ image: "{{ ceph_osd_image_full }}"
+ when: inventory_hostname in groups['ceph-osd']
+
+- name: Pulling ceph-rgw image
+ kolla_docker:
+ action: "pull_image"
+ common_options: "{{ docker_common_options }}"
+ image: "{{ ceph_rgw_image_full }}"
+ when: inventory_hostname in groups['ceph-rgw']