diff --git a/tasks/octavia_certs_install.yml b/tasks/octavia_certs_install.yml index f219380e..8c1fe436 100644 --- a/tasks/octavia_certs_install.yml +++ b/tasks/octavia_certs_install.yml @@ -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: diff --git a/tests/test-configure-octavia.yml b/tests/test-configure-octavia.yml index fa2f1d04..d808421f 100644 --- a/tests/test-configure-octavia.yml +++ b/tests/test-configure-octavia.yml @@ -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 diff --git a/tests/test-octavia.yml b/tests/test-octavia.yml index 5f69e6b4..2f5325c6 100644 --- a/tests/test-octavia.yml +++ b/tests/test-octavia.yml @@ -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