Merge "Replace virtualenv-tools by a script"

This commit is contained in:
Zuul 2018-02-18 23:04:44 +00:00 committed by Gerrit Code Review
commit 3d767328c7
2 changed files with 7 additions and 4 deletions

View File

@ -260,7 +260,6 @@ cinder_service_in_ldap: false
# Cinder packages that must be installed before anything else
cinder_requires_pip_packages:
- virtualenv
- virtualenv-tools
- python-keystoneclient # Keystoneclient needed by the keystone Ansible module
- httplib2

View File

@ -111,10 +111,14 @@
- ansible_pkg_mgr in ['yum', 'dnf', 'zypper']
- cinder_get_venv | changed
- name: Update virtualenv path
command: >
virtualenv-tools --update-path=auto --reinitialize {{ cinder_bin | dirname }}
- name: Reset virtualenv and update its paths
shell: |
find {{ cinder_bin }} -name \*.pyc -delete
sed -si '1s/^.*python.*$/#!{{ cinder_bin | replace ('/','\/') }}\/python/' {{ cinder_bin }}/*
virtualenv {{ cinder_bin | dirname }}
when: cinder_get_venv | changed
tags:
- skip_ansible_lint
- name: Initialise the upgrade facts
ini_file: