Use python3 source installs of OpenStack services where possible
Detect CentOS and deploy from source as python2, otherwise default to python3 on all other distros. Change-Id: Ic68dc0923a26ece68b1971648c62bb2e0c05c50b
This commit is contained in:
parent
831b1dc27b
commit
3c076ed645
@ -19,6 +19,12 @@ openstack_release: "{{ lookup('env', 'OSA_VERSION') | default('undefined', true)
|
|||||||
## OpenStack Configuration directory
|
## OpenStack Configuration directory
|
||||||
openstack_config_dir: "{{ lookup('env', 'OSA_CONFIG_DIR') | default('/etc/openstack_deploy') }}"
|
openstack_config_dir: "{{ lookup('env', 'OSA_CONFIG_DIR') | default('/etc/openstack_deploy') }}"
|
||||||
|
|
||||||
|
## OpenStack service python version
|
||||||
|
openstack_venv_python_executable: "{{ (ansible_distribution == 'CentOS') | ternary('python2', 'python3') }}"
|
||||||
|
|
||||||
|
#uwsgi venv deploys the same python version as OpenStack service venv
|
||||||
|
uwsgi_python_executable: "{{ openstack_venv_python_executable }}"
|
||||||
|
|
||||||
## Verbosity Options
|
## Verbosity Options
|
||||||
debug: False
|
debug: False
|
||||||
|
|
||||||
|
@ -120,6 +120,7 @@
|
|||||||
include_role:
|
include_role:
|
||||||
name: "python_venv_build"
|
name: "python_venv_build"
|
||||||
vars:
|
vars:
|
||||||
|
venv_python_executable: "{{ utility_venv_python_executable | default(openstack_venv_python_executable) }}"
|
||||||
venv_install_destination_path: "{{ utility_venv_bin | dirname }}"
|
venv_install_destination_path: "{{ utility_venv_bin | dirname }}"
|
||||||
venv_pip_install_args: "{{ pip_install_options | default('') }}"
|
venv_pip_install_args: "{{ pip_install_options | default('') }}"
|
||||||
venv_build_constraints:
|
venv_build_constraints:
|
||||||
|
Loading…
Reference in New Issue
Block a user