From 2e57a199f204ddb83da2d307ad6b13e9ad6e694d Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Wed, 11 Sep 2019 21:13:23 +0100 Subject: [PATCH] Allow venv python interpreter to be overridden Change-Id: Ib1993911a076a31e421bc5a61e1d61c6ecd650e3 --- defaults/main.yml | 1 + tasks/octavia_install.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index ce7558f0..0755ffb2 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -24,6 +24,7 @@ octavia_service_setup_host_python_interpreter: "{{ openstack_service_setup_host_ # Set installation method. octavia_install_method: "source" +octavia_venv_python_executable: "{{ openstack_venv_python_executable | default('python2') }}" ## Octavia standalone (v2) octavia_v2: True diff --git a/tasks/octavia_install.yml b/tasks/octavia_install.yml index 3ebd146b..b34b132a 100644 --- a/tasks/octavia_install.yml +++ b/tasks/octavia_install.yml @@ -27,6 +27,7 @@ import_role: name: "python_venv_build" vars: + venv_python_executable: "{{ octavia_venv_python_executable }}" venv_build_constraints: "{{ octavia_git_constraints }}" venv_build_distro_package_list: "{{ octavia_devel_distro_packages }}" venv_install_destination_path: "{{ octavia_bin | dirname }}"