Allow glance role to pull images

Change-Id: Ib5c22c7416bdc7ce83123b79fa7b08afda7595bc
Partially-Implements: blueprint pre-pull-images
This commit is contained in:
SamYaple 2016-01-05 17:48:46 +00:00
parent 912bce7b3e
commit b60bb946d0
3 changed files with 40 additions and 24 deletions

View File

@ -0,0 +1,25 @@
---
- include: ceph.yml
when:
- enable_ceph | bool
- inventory_hostname in groups['ceph-mon'] or
inventory_hostname in groups['glance-api'] or
inventory_hostname in groups['glance-registry']
- include: register.yml
when: inventory_hostname in groups['glance-api']
- include: config.yml
when: inventory_hostname in groups['glance-api'] or
inventory_hostname in groups['glance-registry']
- include: bootstrap.yml
when: inventory_hostname in groups['glance-api']
- include: start.yml
when: inventory_hostname in groups['glance-api'] or
inventory_hostname in groups['glance-registry']
- include: check.yml
when: inventory_hostname in groups['glance-api'] or
inventory_hostname in groups['glance-registry']

View File

@ -1,25 +1,2 @@
--- ---
- include: ceph.yml - include: "{{ action }}.yml"
when:
- enable_ceph | bool
- inventory_hostname in groups['ceph-mon'] or
inventory_hostname in groups['glance-api'] or
inventory_hostname in groups['glance-registry']
- include: register.yml
when: inventory_hostname in groups['glance-api']
- include: config.yml
when: inventory_hostname in groups['glance-api'] or
inventory_hostname in groups['glance-registry']
- include: bootstrap.yml
when: inventory_hostname in groups['glance-api']
- include: start.yml
when: inventory_hostname in groups['glance-api'] or
inventory_hostname in groups['glance-registry']
- include: check.yml
when: inventory_hostname in groups['glance-api'] or
inventory_hostname in groups['glance-registry']

View File

@ -0,0 +1,14 @@
---
- name: Pulling glance-api image
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"
image: "{{ glance_api_image_full }}"
when: inventory_hostname in groups['glance-api']
- name: Pulling glance-registry image
kolla_docker:
action: "pull_image"
common_options: "{{ docker_common_options }}"
image: "{{ glance_registry_image_full }}"
when: inventory_hostname in groups['glance-registry']