Browse Source

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: Ia3b8ac0cc8ca895c39b20eac30763ad4873f78b1
Jesse Pretorius 5 months ago
parent
commit
f47ce32ee6
2 changed files with 2 additions and 2 deletions
  1. 1
    0
      defaults/main.yml
  2. 1
    2
      tasks/tacker_service_setup.yml

+ 1
- 0
defaults/main.yml View File

@@ -26,6 +26,7 @@ tacker_ceilometer_enabled: False
26 26
 # for the service setup. The host must already have
27 27
 # clouds.yaml properly configured.
28 28
 tacker_service_setup_host: "{{ openstack_service_setup_host | default('localhost') }}"
29
+tacker_service_setup_host_python_interpreter: "{{ openstack_service_setup_host_python_interpreter | default((tacker_service_setup_host == 'localhost') | ternary(ansible_playbook_python, ansible_python['executable'])) }}"
29 30
 
30 31
 # Set the package install state for distribution packages
31 32
 # Options are 'present' and 'latest'

+ 1
- 2
tasks/tacker_service_setup.yml View File

@@ -23,8 +23,7 @@
23 23
 - name: Setup the service
24 24
   delegate_to: "{{ tacker_service_setup_host }}"
25 25
   vars:
26
-    ansible_python_interpreter: >-
27
-      {{ (tacker_service_setup_host == 'localhost') | ternary(ansible_playbook_python, ansible_python['executable']) }}
26
+    ansible_python_interpreter: "{{ tacker_service_setup_host_python_interpreter }}"
28 27
   block:
29 28
     - name: Add service to the keystone service catalog
30 29
       os_keystone_service:

Loading…
Cancel
Save