aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamYaple <sam@yaple.net>2016-01-01 04:23:32 +0000
committerSamYaple <sam@yaple.net>2016-01-04 19:49:27 +0000
commitcba75b4084d00c892157a6bae3421106e935fa62 (patch)
tree9f24a2aab121d27a74c9c552393da4394afae771
parent462e8a3b6e5c0dd8d01dec29170b1aa7ff055554 (diff)
downloadkolla-cba75b4084d00c892157a6bae3421106e935fa62.tar.gz
kolla-cba75b4084d00c892157a6bae3421106e935fa62.zip
Allow ceph role to pull images
Change-Id: I7176bdc897e07f28684eedffb3c59e407eba322e Partially-Implements: blueprint pre-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']