Move scenario variables under vars

This is so variables can be overridden in playbooks
that include bootstrap-aio.yml. Otherwise, the variables
specified at time of the role invocation will always take
precedence.

Change-Id: Ie2df5f4b18795edbc4abec1c348057106537f857
This commit is contained in:
alextricity25 2017-02-03 11:14:24 -06:00 committed by Jesse Pretorius
parent e7385105ee
commit 6b7147e901

View File

@ -21,8 +21,10 @@
- role: "sshd" - role: "sshd"
- role: "pip_install" - role: "pip_install"
- role: "bootstrap-host" - role: "bootstrap-host"
vars:
openstack_confd_entries: "{{ confd_overrides[scenario] }}" openstack_confd_entries: "{{ confd_overrides[scenario] }}"
bootstrap_host_scenario: "{{ scenario }}" bootstrap_host_scenario: "{{ scenario }}"
scenario: "{{ lookup('env','SCENARIO') | default('aio', true) }}"
confd_overrides: confd_overrides:
aio: aio:
- name: aodh.yml.aio - name: aodh.yml.aio
@ -60,8 +62,6 @@
- name: neutron.yml.aio - name: neutron.yml.aio
- name: nova.yml.aio - name: nova.yml.aio
- name: swift.yml.aio - name: swift.yml.aio
vars:
scenario: "{{ lookup('env','SCENARIO') | default('aio', true) }}"
sshd: sshd:
ListenAddress: ListenAddress:
- 0.0.0.0 - 0.0.0.0