Merge "Replace virtualenv-tools by a script" into stable/queens
This commit is contained in:
commit
ad71e5305f
|
@ -103,7 +103,6 @@ aodh_service_in_ldap: false
|
||||||
# aodh packages that must be installed before anything else
|
# aodh packages that must be installed before anything else
|
||||||
aodh_requires_pip_packages:
|
aodh_requires_pip_packages:
|
||||||
- virtualenv
|
- virtualenv
|
||||||
- virtualenv-tools
|
|
||||||
- python-keystoneclient # Keystoneclient needed to OSA keystone lib
|
- python-keystoneclient # Keystoneclient needed to OSA keystone lib
|
||||||
- httplib2
|
- httplib2
|
||||||
|
|
||||||
|
|
|
@ -123,9 +123,13 @@
|
||||||
- aodh_get_venv | changed
|
- aodh_get_venv | changed
|
||||||
|
|
||||||
- name: Update virtualenv path
|
- name: Update virtualenv path
|
||||||
command: >
|
shell: |
|
||||||
virtualenv-tools --update-path=auto --reinitialize {{ aodh_bin | dirname }}
|
find {{ aodh_bin }} -name \*.pyc -delete
|
||||||
|
sed -si '1s/^.*python.*$/#!{{ aodh_bin | replace ('/','\/') }}\/python/' {{ aodh_bin }}/*
|
||||||
|
virtualenv {{ aodh_bin | dirname }}
|
||||||
when: aodh_get_venv | changed
|
when: aodh_get_venv | changed
|
||||||
|
tags:
|
||||||
|
- skip_ansible_lint
|
||||||
|
|
||||||
- name: Record the venv tag deployed
|
- name: Record the venv tag deployed
|
||||||
ini_file:
|
ini_file:
|
||||||
|
|
Loading…
Reference in New Issue