Skip to content

Commit

Permalink
Merge pull request #384 from stackhpc/upstream/2023.1-2025-02-10
Browse files Browse the repository at this point in the history
Synchronise 2023.1 with upstream
  • Loading branch information
priteau authored Feb 10, 2025
2 parents 7b2d17a + 3a82e88 commit 1b63ae5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion roles/kayobe-galaxy-requirements/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
kayobe_galaxy_requirements_src_dir:
kayobe_galaxy_requirements_branch: "{{ zuul.branch }}"
kayobe_galaxy_requirements_branch:
kayobe_galaxy_requirements_src_path: "requirements.yml"
kayobe_galaxy_requirements_dest_path: "{{ kayobe_galaxy_requirements_src_dir }}/{{ kayobe_galaxy_requirements_src_path }}"
7 changes: 6 additions & 1 deletion roles/kayobe-galaxy-requirements/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
new_requirement:
name: "file://{{ ansible_collection_kolla_src_dir }}"
type: git
override_version:
version: "{{ kayobe_galaxy_requirements_branch }}"
# NOTE(wszusmki): Use version checked out by Zuul so Depends-On works and only override version
# for previous release.
new_requirement_with_version: "{{ new_requirement | combine(override_version) if kayobe_galaxy_requirements_branch else new_requirement }}"
new_requirements:
collections: "{{ (old_requirements.collections | rejectattr('name', 'search', 'ansible-collection-kolla') | list) + [new_requirement] }}"
collections: "{{ (old_requirements.collections | rejectattr('name', 'search', 'ansible-collection-kolla') | list) + [new_requirement_with_version] }}"
roles: "{{ old_requirements.roles | default([]) }}"

0 comments on commit 1b63ae5

Please sign in to comment.