Enable overriding the service setup host python interpreter
In order to enable the service setup host python interpreter to be changed easily, we make it a variable. This will be useful when someone sets the service setup host to be the utility container, because we'll be able to set this var by default. Change-Id: I0f34a17274ec1abcb43efffcba196049b6161edb
This commit is contained in:
parent
6057233c22
commit
0ba806a9b5
@ -20,6 +20,7 @@ debug: False
|
|||||||
# for the service setup. The host must already have
|
# for the service setup. The host must already have
|
||||||
# clouds.yaml properly configured.
|
# clouds.yaml properly configured.
|
||||||
masakari_service_setup_host: "{{ openstack_service_setup_host | default('localhost') }}"
|
masakari_service_setup_host: "{{ openstack_service_setup_host | default('localhost') }}"
|
||||||
|
masakari_service_setup_host_python_interpreter: "{{ openstack_service_setup_host_python_interpreter | default((masakari_service_setup_host == 'localhost') | ternary(ansible_playbook_python, ansible_python['executable'])) }}"
|
||||||
|
|
||||||
# Set the package install state for distribution and pip packages
|
# Set the package install state for distribution and pip packages
|
||||||
# Options are 'present' and 'latest'
|
# Options are 'present' and 'latest'
|
||||||
|
@ -21,8 +21,7 @@
|
|||||||
- name: Setup the service
|
- name: Setup the service
|
||||||
delegate_to: "{{ masakari_service_setup_host }}"
|
delegate_to: "{{ masakari_service_setup_host }}"
|
||||||
vars:
|
vars:
|
||||||
ansible_python_interpreter: >-
|
ansible_python_interpreter: "{{ masakari_service_setup_host_python_interpreter }}"
|
||||||
{{ (masakari_service_setup_host == 'localhost') | ternary(ansible_playbook_python, ansible_python['executable']) }}
|
|
||||||
block:
|
block:
|
||||||
- name: Add service to the keystone service catalog
|
- name: Add service to the keystone service catalog
|
||||||
os_keystone_service:
|
os_keystone_service:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user