Fixed assumed utility pip install for specific clients

This change implements a dynamic lookup and installation of python clients
within the utility container. The purpose of this change is to ensure that only
python clients known to the environment are installed within the utility
container.

Change-Id: I60e79f3017a5ad3eec6ffca36839acf50fbdf3ce
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
Kevin Carter 2016-09-02 06:37:45 -05:00 committed by Jesse Pretorius (odyssey4me)
parent 7a25d02ee7
commit 4c18f3da3d
2 changed files with 9 additions and 13 deletions

View File

@ -41,18 +41,6 @@ utility_package_state: "{{ package_state }}"
# Python packages to be installed into the utility container
utility_pip_packages:
- gnocchiclient
- python-openstackclient
- python-ceilometerclient
- python-cinderclient
- python-glanceclient
- python-heatclient
- python-keystoneclient
- python-neutronclient
- python-novaclient
- python-ironicclient
- python-saharaclient
- python-swiftclient
- python-memcached
- pycrypto

View File

@ -72,9 +72,17 @@
- ansible_pkg_mgr == 'yum'
tags:
- utility-yum-packages
- name: Get list of python clients
shell: "curl -s {{ openstack_repo_url }}/os-releases/{{ openstack_release }}/requirements_absolute_requirements.txt | grep client | cut -d'=' -f1"
register: client_list
run_once: true
changed_when: false
tags:
- utility-pip-packages
- skip_ansible_lint
- name: Install pip packages
pip:
name: "{{ utility_pip_packages | join(' ') }}"
name: "{{ client_list.stdout_lines | union(utility_pip_packages) | join(' ') }}"
state: latest
extra_args: "{{ pip_install_options|default('') }}"
register: install_packages