Skip to content

Commit

Permalink
Set metadata service host info based on kolla internal vip
Browse files Browse the repository at this point in the history
Change-Id: I260ec8854776d7792b40b973f4c44112485456cf
Closes-Bug: 1764839
  • Loading branch information
Senthilnathan Murugappan committed Apr 17, 2018
1 parent a09ea62 commit 5359914
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions playbooks/roles/install_contrail/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,29 @@
tags:
- always

- name: set IPFABRIC_SERVICE_HOST from derived kolla parameters
set_fact:
contrail_configuration: "{{ contrail_configuration|default({})|combine({'IPFABRIC_SERVICE_HOST': final_kolla_configs.kolla_internal_vip_address }) }}"
when:
- contrail_configuration.IPFABRIC_SERVICE_HOST is not defined
- contrail_configuration.CLOUD_ORCHESTRATOR == 'openstack'
- final_kolla_configs is defined
- final_kolla_configs.kolla_internal_vip_address is defined
tags:
- always

- name: set IPFABRIC_SERVICE_HOST from kolla_config.kolla_globals
set_fact:
contrail_configuration: "{{ contrail_configuration|default({})|combine({'IPFABRIC_SERVICE_HOST': kolla_config.kolla_globals.kolla_internal_vip_address }) }}"
when:
- contrail_configuration.IPFABRIC_SERVICE_HOST is not defined
- contrail_configuration.CLOUD_ORCHESTRATOR == 'openstack'
- kolla_config is defined
- kolla_config.kolla_globals is defined
- kolla_config.kolla_globals.kolla_internal_vip_address is defined
tags:
- always

- name: set Common SSL Enable flag for cert creation
set_fact:
ssl_cert_create: true
Expand Down

0 comments on commit 5359914

Please sign in to comment.