Adds constraints to all pip installs
Recently we ran into trouble with the cmd2 extension's latest version being python3 only. This exposed the need to constrain all pip installs (as it should have been) (cherry picked from commit e711ce4f510de71da39e011ffdbf358a6b4e50bb) Change-Id: I8f27bddd45905c14bec486c515b5b190c66eaf20
This commit is contained in:
parent
39e36da08c
commit
283e7c86b5
@ -17,6 +17,10 @@
|
||||
pip:
|
||||
name: pyOpenSSL
|
||||
state: present
|
||||
extra_args: >-
|
||||
{{ octavia_developer_mode | ternary(pip_install_developer_constraints | default('--constraint /opt/developer-pip-constraints.txt'), '') }}
|
||||
{{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''),'') }}
|
||||
{{ pip_install_options | default('') }}
|
||||
|
||||
- name: Generate Cert Dirs
|
||||
file:
|
||||
|
@ -22,6 +22,10 @@
|
||||
pip:
|
||||
name: "shade"
|
||||
state: "{{ octavia_pip_package_state }}"
|
||||
extra_args: >-
|
||||
{{ octavia_developer_mode | ternary(pip_install_developer_constraints | default('--constraint /opt/developer-pip-constraints.txt'), '') }}
|
||||
{{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''),'') }}
|
||||
{{ pip_install_options | default('') }}
|
||||
register: install_packages
|
||||
until: install_packages|success
|
||||
retries: 5
|
||||
|
@ -35,6 +35,10 @@
|
||||
pip:
|
||||
name: "{{ item }}"
|
||||
state: "{{ octavia_pip_package_state }}"
|
||||
extra_args: >-
|
||||
{{ octavia_developer_mode | ternary(pip_install_developer_constraints | default('--constraint /opt/developer-pip-constraints.txt'), '') }}
|
||||
{{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''),'') }}
|
||||
{{ pip_install_options | default('') }}
|
||||
register: install_packages
|
||||
until: install_packages|success
|
||||
retries: 5
|
||||
|
Loading…
x
Reference in New Issue
Block a user