Allow venv python interpreter to be overridden

Change-Id: Id0b00e8253b907da4f038316a056e7b1b28a2172
This commit is contained in:
Jonathan Rosser 2019-09-11 09:58:33 +01:00
parent 4b5901ae78
commit 7ab0e460d1
2 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,8 @@ gnocchi_identity_only: False
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'])) }}"
#venv python version
gnocchi_venv_python_executable: "{{ openstack_venv_python_executable | default('python2') }}"
#: Enable for debug logging level
debug: false

View File

@ -47,6 +47,7 @@
import_role:
name: "python_venv_build"
vars:
venv_python_executable: "{{ gnocchi_venv_python_executable }}"
venv_build_constraints: "{{ gnocchi_git_constraints }}"
venv_install_destination_path: "{{ gnocchi_bin | dirname }}"
venv_install_distro_package_list: "{{ gnocchi_distro_packages }}"