Allow neutron role to pull images
Change-Id: I81b75f51937c0365cfc3b7066d5f418a8bacd7ea Partially-Implements: blueprint pre-pull-images
This commit is contained in:
parent
e764e8522d
commit
79f4883cc8
24
ansible/roles/neutron/tasks/deploy.yml
Normal file
24
ansible/roles/neutron/tasks/deploy.yml
Normal file
@ -0,0 +1,24 @@
|
||||
---
|
||||
# enforce ironic usage only with openvswtich
|
||||
- include: ironic-check.yml
|
||||
|
||||
- include: register.yml
|
||||
when: inventory_hostname in groups['neutron-server']
|
||||
|
||||
- include: config.yml
|
||||
when: inventory_hostname in groups['compute'] or
|
||||
inventory_hostname in groups['neutron-agents'] or
|
||||
inventory_hostname in groups['neutron-server']
|
||||
|
||||
- include: config-neutron-fake.yml
|
||||
when:
|
||||
- inventory_hostname in groups['compute']
|
||||
- enable_nova_fake | bool
|
||||
|
||||
- include: bootstrap.yml
|
||||
when: inventory_hostname in groups['neutron-server']
|
||||
|
||||
- include: start.yml
|
||||
when: inventory_hostname in groups['compute'] or
|
||||
inventory_hostname in groups['neutron-agents'] or
|
||||
inventory_hostname in groups['neutron-server']
|
@ -1,24 +1,2 @@
|
||||
---
|
||||
# enforce ironic usage only with openvswtich
|
||||
- include: ironic-check.yml
|
||||
|
||||
- include: register.yml
|
||||
when: inventory_hostname in groups['neutron-server']
|
||||
|
||||
- include: config.yml
|
||||
when: inventory_hostname in groups['compute'] or
|
||||
inventory_hostname in groups['neutron-agents'] or
|
||||
inventory_hostname in groups['neutron-server']
|
||||
|
||||
- include: config-neutron-fake.yml
|
||||
when:
|
||||
- inventory_hostname in groups['compute']
|
||||
- enable_nova_fake | bool
|
||||
|
||||
- include: bootstrap.yml
|
||||
when: inventory_hostname in groups['neutron-server']
|
||||
|
||||
- include: start.yml
|
||||
when: inventory_hostname in groups['compute'] or
|
||||
inventory_hostname in groups['neutron-agents'] or
|
||||
inventory_hostname in groups['neutron-server']
|
||||
- include: "{{ action }}.yml"
|
||||
|
50
ansible/roles/neutron/tasks/pull.yml
Normal file
50
ansible/roles/neutron/tasks/pull.yml
Normal file
@ -0,0 +1,50 @@
|
||||
---
|
||||
- name: Pulling neutron-agents image
|
||||
kolla_docker:
|
||||
action: "pull_image"
|
||||
common_options: "{{ docker_common_options }}"
|
||||
image: "{{ neutron_agents_image_full }}"
|
||||
when: inventory_hostname in groups['neutron-agents']
|
||||
|
||||
- name: Pulling neutron-linuxbridge-agent image
|
||||
kolla_docker:
|
||||
action: "pull_image"
|
||||
common_options: "{{ docker_common_options }}"
|
||||
image: "{{ neutron_linuxbridge_agent_image_full }}"
|
||||
when:
|
||||
- (inventory_hostname in groups['compute'] or inventory_hostname in groups['neutron-agents'])
|
||||
- neutron_plugin_agent == "linuxbridge"
|
||||
|
||||
- name: Pulling neutron-openvswitch-agent image
|
||||
kolla_docker:
|
||||
action: "pull_image"
|
||||
common_options: "{{ docker_common_options }}"
|
||||
image: "{{ neutron_openvswitch_agent_image_full }}"
|
||||
when:
|
||||
- (inventory_hostname in groups['compute'] or inventory_hostname in groups['neutron-agents'])
|
||||
- neutron_plugin_agent == "openvswitch"
|
||||
|
||||
- name: Pulling neutron-server image
|
||||
kolla_docker:
|
||||
action: "pull_image"
|
||||
common_options: "{{ docker_common_options }}"
|
||||
image: "{{ neutron_server_image_full }}"
|
||||
when: inventory_hostname in groups['neutron-server']
|
||||
|
||||
- name: Pulling openvswitch-db image
|
||||
kolla_docker:
|
||||
action: "pull_image"
|
||||
common_options: "{{ docker_common_options }}"
|
||||
image: "{{ openvswitch_db_image_full }}"
|
||||
when:
|
||||
- (inventory_hostname in groups['compute'] or inventory_hostname in groups['neutron-agents'])
|
||||
- neutron_plugin_agent == "openvswitch"
|
||||
|
||||
- name: Pulling openvswitch-vswitchd image
|
||||
kolla_docker:
|
||||
action: "pull_image"
|
||||
common_options: "{{ docker_common_options }}"
|
||||
image: "{{ openvswitch_vswitchd_image_full }}"
|
||||
when:
|
||||
- (inventory_hostname in groups['compute'] or inventory_hostname in groups['neutron-agents'])
|
||||
- neutron_plugin_agent == "openvswitch"
|
Loading…
Reference in New Issue
Block a user