Delegate info gathering to setup host
We are not supposed to have neither openstack client nor clouds.yaml file in octavia containers and all openstack commands are expected to be executed on the setup (utility) host. Change-Id: I93398ef72be3e423c721f92e4bf9077cd5e08d05
This commit is contained in:
parent
b94b927aaf
commit
7659d1ac44
@ -43,6 +43,9 @@
|
||||
with_items: "{{ octavia_user_haproxy_templates }}"
|
||||
|
||||
- name: Set octavia_nova_flavor_uuid if it is not already set
|
||||
delegate_to: "{{ octavia_service_setup_host }}"
|
||||
vars:
|
||||
ansible_python_interpreter: "{{ octavia_service_setup_host_python_interpreter }}"
|
||||
when:
|
||||
- octavia_nova_flavor_uuid is not defined
|
||||
block:
|
||||
@ -62,14 +65,15 @@
|
||||
register: get_flavor_info
|
||||
until: get_flavor_info is success
|
||||
retries: 5
|
||||
vars:
|
||||
ansible_python_interpreter: "{{ octavia_bin }}/python"
|
||||
|
||||
- name: Set Octavia flavor UUID fact
|
||||
set_fact:
|
||||
octavia_nova_flavor_uuid: "{{ get_flavor_info.openstack_flavors[0].id }}"
|
||||
|
||||
- name: Set octavia_neutron_management_network_uuid if it is not already set
|
||||
delegate_to: "{{ octavia_service_setup_host }}"
|
||||
vars:
|
||||
ansible_python_interpreter: "{{ octavia_service_setup_host_python_interpreter }}"
|
||||
when:
|
||||
- octavia_neutron_management_network_uuid is not defined
|
||||
- octavia_neutron_management_network_name is defined
|
||||
@ -91,8 +95,6 @@
|
||||
until: get_net_info is success
|
||||
retries: 5
|
||||
delay: 10
|
||||
vars:
|
||||
ansible_python_interpreter: "{{ octavia_bin }}/python"
|
||||
|
||||
- name: Set Octavia management network UUID fact
|
||||
set_fact:
|
||||
|
Loading…
x
Reference in New Issue
Block a user