From 3a322ce592e78e395247e89cfbedeeb77114f416 Mon Sep 17 00:00:00 2001 From: Michal Nasiadka Date: Wed, 7 Aug 2024 19:24:43 +0200 Subject: [PATCH] CI: Use u-c in openstack-clients role Change-Id: I29a3f86b59aeaa8ca64d5e6780fa094b903d0039 --- roles/openstack-clients/defaults/main.yml | 2 ++ roles/openstack-clients/tasks/main.yml | 1 + 2 files changed, 3 insertions(+) diff --git a/roles/openstack-clients/defaults/main.yml b/roles/openstack-clients/defaults/main.yml index 8ffa3fa745..77aec80198 100644 --- a/roles/openstack-clients/defaults/main.yml +++ b/roles/openstack-clients/defaults/main.yml @@ -35,3 +35,5 @@ openstack_clients_pip_packages: openstack_clients_venv_base: "{{ ansible_user_dir }}" openstack_clients_venv_name: "openstackclient-venv" openstack_clients_venv_path: "{{ openstack_clients_venv_base }}/{{ openstack_clients_venv_name }}" + +openstack_clients_upper_constraints_file: "{{ ansible_env.HOME }}/src/opendev.org/openstack/requirements/upper-constraints.txt" diff --git a/roles/openstack-clients/tasks/main.yml b/roles/openstack-clients/tasks/main.yml index e2924c1b77..aafa855fb9 100644 --- a/roles/openstack-clients/tasks/main.yml +++ b/roles/openstack-clients/tasks/main.yml @@ -1,6 +1,7 @@ --- - name: Setup OpenStack clients ansible.builtin.pip: + extra_args: "-c {{ openstack_clients_upper_constraints_file }}" name: "{{ item.package }}" virtualenv: "{{ openstack_clients_venv_path }}" virtualenv_command: "python3 -m venv"