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: I04e853fb582d7b39708a2fb6ed854b4e458f06d9
This commit is contained in:
parent
38340cf4bd
commit
83bac058ed
|
@ -21,6 +21,8 @@ gnocchi_identity_only: False
|
|||
# for the service setup. The host must already have
|
||||
# clouds.yaml properly configured.
|
||||
gnocchi_service_setup_host: "{{ openstack_service_setup_host | default('localhost') }}"
|
||||
gnocchi_service_setup_host_python_interpreter: "{{ openstack_service_setup_host_python_interpreter | default((gnocchi_service_setup_host == 'localhost') | ternary(ansible_playbook_python, ansible_python['executable'])) }}"
|
||||
|
||||
|
||||
#: Enable for debug logging level
|
||||
debug: false
|
||||
|
|
|
@ -21,8 +21,7 @@
|
|||
- name: Setup the service
|
||||
delegate_to: "{{ gnocchi_service_setup_host }}"
|
||||
vars:
|
||||
ansible_python_interpreter: >-
|
||||
{{ (gnocchi_service_setup_host == 'localhost') | ternary(ansible_playbook_python, ansible_python['executable']) }}
|
||||
ansible_python_interpreter: "{{ gnocchi_service_setup_host_python_interpreter }}"
|
||||
block:
|
||||
- name: Add service to the keystone service catalog
|
||||
os_keystone_service:
|
||||
|
|
Loading…
Reference in New Issue