Merge "Enable overriding the service setup host python interpreter"

This commit is contained in:
Zuul 2018-12-07 19:15:38 +00:00 committed by Gerrit Code Review
commit ebc85c0813
2 changed files with 2 additions and 2 deletions

View File

@ -22,6 +22,7 @@ debug: False
# for the service setup. The host must already have
# clouds.yaml properly configured.
ironic_service_setup_host: "{{ openstack_service_setup_host | default('localhost') }}"
ironic_service_setup_host_python_interpreter: "{{ openstack_service_setup_host_python_interpreter | default((ironic_service_setup_host == 'localhost') | ternary(ansible_playbook_python, ansible_python['executable'])) }}"
# Comma separated list of Glance API servers
ironic_glance_api_servers: "{{ (glance_service_internalurl | default('http://localhost')) | netorigin }}"

View File

@ -21,8 +21,7 @@
- name: Setup the service
delegate_to: "{{ ironic_service_setup_host }}"
vars:
ansible_python_interpreter: >-
{{ (ironic_service_setup_host == 'localhost') | ternary(ansible_playbook_python, ansible_python['executable']) }}
ansible_python_interpreter: "{{ ironic_service_setup_host_python_interpreter }}"
block:
- name: Add service to the keystone service catalog
os_keystone_service: