From b4c97cce66f0ebe45bb8d3aeae4d11d72b952486 Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Thu, 5 Sep 2019 13:15:00 +0100 Subject: [PATCH] Allow venv python interpreter to be overridden Change-Id: Ifae8209a6e9354dcee551209958ce89687b01709 --- defaults/main.yml | 1 + tasks/cinder_install_source.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index 3a68956f..18a53d56 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -26,6 +26,7 @@ cinder_service_setup_host_python_interpreter: "{{ openstack_service_setup_host_p # Set installation method. cinder_install_method: "source" +cinder_venv_python_executable: "{{ openstack_venv_python_executable | default('python2') }}" cinder_git_repo: https://git.openstack.org/openstack/cinder cinder_git_install_branch: master diff --git a/tasks/cinder_install_source.yml b/tasks/cinder_install_source.yml index af8bf82a..1dc89af4 100644 --- a/tasks/cinder_install_source.yml +++ b/tasks/cinder_install_source.yml @@ -17,6 +17,7 @@ import_role: name: "python_venv_build" vars: + venv_python_executable: "{{ cinder_venv_python_executable }}" venv_build_constraints: "{{ cinder_git_constraints }}" venv_build_distro_package_list: "{{ cinder_devel_distro_packages }}" venv_install_destination_path: "{{ cinder_bin | dirname }}"