Consolidate pip install tasks
The pip install tasks were distributed into many files with no clear benefit from doing so. This patch consolidates the pip install tasks to ensure that they are all handled together, are all installed into the appropriate venv, and all use the right constraints. Change-Id: I8bad68c57c0ffa986817aa80d79e9d2ab4b86a3d
This commit is contained in:
parent
5e69f88ed9
commit
75e85cff4c
@ -124,20 +124,15 @@ ironic_requires_pip_packages:
|
||||
- python-keystoneclient # Keystoneclient needed for the OSA keystone lib
|
||||
|
||||
ironic_pip_packages:
|
||||
- mysql-python
|
||||
- MySQL-python
|
||||
- ironic
|
||||
- python-ironicclient
|
||||
|
||||
ironic_api_apt_packages:
|
||||
- apache2
|
||||
- apache2-utils
|
||||
- libapache2-mod-wsgi
|
||||
|
||||
ironic_api_pip_packages:
|
||||
- mysql-python
|
||||
|
||||
python_ironicclient_pip_packages:
|
||||
- python-ironicclient
|
||||
|
||||
ironic_conductor_apt_packages:
|
||||
- libxml2-dev
|
||||
- rabbitmq-server
|
||||
@ -154,9 +149,6 @@ ironic_conductor_standalone_apt_packages:
|
||||
- isc-dhcp-server
|
||||
- tftpd-hpa
|
||||
|
||||
ironic_conductor_pip_packages:
|
||||
- mysql-python
|
||||
|
||||
## RabbitMQ info
|
||||
ironic_rabbitmq_userid: ironic
|
||||
ironic_rabbitmq_vhost: /ironic
|
||||
|
@ -26,18 +26,3 @@
|
||||
- ironic-install
|
||||
- ironic-api
|
||||
- ironic-apt-packages
|
||||
|
||||
- name: Install ironic-api specific pip dependencies
|
||||
pip:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
extra_args: "{{ pip_install_options_fact }}"
|
||||
register: install_packages
|
||||
until: install_packages|success
|
||||
retries: 5
|
||||
delay: 2
|
||||
with_items: ironic_api_pip_packages
|
||||
tags:
|
||||
- ironic-install
|
||||
- ironic-api
|
||||
- ironic-pip-packages
|
||||
|
@ -41,18 +41,3 @@
|
||||
- ironic-install
|
||||
- ironic-conductor
|
||||
- ironic-apt-packages
|
||||
|
||||
- name: Install ironic-conductor specific pip dependencies
|
||||
pip:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
extra_args: "{{ pip_install_options_fact }}"
|
||||
register: install_packages
|
||||
until: install_packages|success
|
||||
retries: 5
|
||||
delay: 2
|
||||
with_items: ironic_conductor_pip_packages
|
||||
tags:
|
||||
- ironic-install
|
||||
- ironic-conductor
|
||||
- ironic-pip-packages
|
||||
|
@ -82,8 +82,7 @@
|
||||
until: install_packages|success
|
||||
retries: 5
|
||||
delay: 2
|
||||
with_items:
|
||||
- "{{ ironic_pip_packages }}"
|
||||
with_items: ironic_pip_packages
|
||||
when:
|
||||
- ironic_venv_enabled | bool
|
||||
- ironic_developer_mode | bool
|
||||
@ -100,8 +99,7 @@
|
||||
until: install_packages|success
|
||||
retries: 5
|
||||
delay: 2
|
||||
with_items:
|
||||
- "{{ ironic_pip_packages }}"
|
||||
with_items: ironic_pip_packages
|
||||
when:
|
||||
- not ironic_venv_enabled | bool
|
||||
- not ironic_developer_mode | bool
|
||||
|
@ -24,8 +24,6 @@
|
||||
when: >
|
||||
inventory_hostname in groups['ironic_conductor']
|
||||
|
||||
- include: python_ironicclient_install.yml
|
||||
|
||||
- include: ironic_post_install.yml
|
||||
|
||||
- include: ironic_api_post_install.yml
|
||||
|
@ -1,50 +0,0 @@
|
||||
---
|
||||
# Copyright 2014, Rackspace US, Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
- name: Install python-ironicclient pip packages (venv)
|
||||
pip:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
virtualenv: "{{ ironic_venv_bin | dirname }}"
|
||||
virtualenv_site_packages: "no"
|
||||
extra_args: "{{ pip_install_options_fact }}"
|
||||
register: install_packages
|
||||
until: install_packages|success
|
||||
retries: 5
|
||||
delay: 2
|
||||
with_items:
|
||||
- "{{ python_ironicclient_pip_packages }}"
|
||||
when:
|
||||
- ironic_venv_enabled | bool
|
||||
tags:
|
||||
- ironicclient-install
|
||||
- ironicclient-pip-packages
|
||||
|
||||
- name: Install python-ironicclient pip packages (no venv)
|
||||
pip:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
extra_args: "{{ pip_install_options_fact }}"
|
||||
register: install_packages
|
||||
until: install_packages|success
|
||||
retries: 5
|
||||
delay: 2
|
||||
with_items:
|
||||
- "{{ python_ironicclient_pip_packages }}"
|
||||
when: not ironic_venv_enabled | bool
|
||||
tags:
|
||||
- ironicclient-install
|
||||
- ironicclient-pip-packages
|
||||
|
Loading…
x
Reference in New Issue
Block a user