Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions roles/edpm_prepare/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ This role doesn't need privilege escalation.
* `cifmw_edpm_prepare_wait_controplane_status_change_sec`: (Integer) Time, in seconds, to wait before checking
openstack control plane deployment status. Useful when using the role to only update the control plane resource, scenario where it may be in a `ready` status. Defaults to `30`.
* `cifmw_edpm_prepare_extra_kustomizations`: (List) Extra Kustomizations to apply on top of the controlplane CRs. Defaults to `[]`.
* `cifmw_edpm_prepare_bootc_os_image_url`: (String) Default bootc OS container image used when content-provider did not build one. Defaults to `quay.io/openstack-k8s-operators/edpm-bootc:latest-qcow2`.
3 changes: 3 additions & 0 deletions roles/edpm_prepare/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@ cifmw_edpm_prepare_kustomizations: []
cifmw_edpm_prepare_wait_controplane_status_change_sec: 30
cifmw_edpm_prepare_extra_kustomizations: []
cifmw_prepare_openstackversion: true
# Default bootc OS image when content-provider did not build one.
cifmw_edpm_prepare_bootc_os_image_url: >-
quay.io/openstack-k8s-operators/edpm-bootc:latest-qcow2
9 changes: 8 additions & 1 deletion roles/edpm_prepare/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@
}}
cacheable: true
when:
- cifmw_update_containers_edpm_image_url is not defined
- cifmw_build_images_output is defined
- "'images' in cifmw_build_images_output"
- >-
Expand All @@ -182,6 +181,14 @@
'edpm-hardened-uefi' in cifmw_build_images_output['images']
)

- name: Set default bootc OS image url when not built by content provider
ansible.builtin.set_fact:
cifmw_update_containers_edpm_image_url: "{{ cifmw_edpm_prepare_bootc_os_image_url }}"
cacheable: true
when:
- cifmw_edpm_deploy_baremetal_bootc | default(false) | bool
- cifmw_update_containers_edpm_image_url is not defined

# Prepare and kustomize the OpenStackControlPlane CR
- name: Prepare OpenStack control plane CR
vars:
Expand Down
Loading