Skip to content

Commit 4d1150a

Browse files
committed
added Rocky Linux 10 AppStream/BaseOS url blocks and conditionals on build args to use these
1 parent b5dd5ce commit 4d1150a

3 files changed

Lines changed: 19 additions & 3 deletions

File tree

etc/kayobe/pulp.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,12 +199,17 @@ stackhpc_pulp_distribution_deb_production: >-
199199
# Content comes in from release repositories, via pinned repo versions.
200200

201201
# Whether to sync Rocky Linux 9 packages.
202-
stackhpc_pulp_sync_rocky_9: "{{ os_distribution == 'rocky' }}"
202+
stackhpc_pulp_sync_rocky_9: "{{ os_distribution == 'rocky' && os_release == '9' }}"
203203
# Rocky 9 minor version number. Supported values: 6, 7. Default is 7
204204
stackhpc_pulp_repo_rocky_9_minor_version: '7'
205205
# Rocky 9 Snapshot versions. The defaults use the appropriate version from
206206
# pulp-repo-versions.yml for the selected minor release.
207207

208+
#NOTE(owenjones): For now using separate rocky_10 variables, will look at abstracting major version
209+
#out to avoid making this file balloon in length
210+
stackhpc_pulp_sync_rocky_10: "{{ os_distribution == 'rocky' && os_release == '10' }}"
211+
stackhpc_pulp_repo_rocky_10_minor_version: '1'
212+
208213
# Define the architecture suffix
209214
arch_suffix: "{{ '_aarch64' if kolla_base_arch == 'aarch64' else '' }}"
210215

etc/kayobe/stackhpc-overcloud-dib.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ stackhpc_overcloud_dib_env_vars: "{{ stackhpc_overcloud_dib_env_vars_default | c
3939

4040
# By default the :9 tag is used as base image. Here we want a specific minor version.
4141
stackhpc_overcloud_dib_container_opts_default: >-
42-
--build-arg=ROCKY_VERSION=9.{{ stackhpc_pulp_repo_rocky_9_minor_version }}
42+
{% if os_distribution == 'rocky' && os_release == '9' %}--build-arg=ROCKY_VERSION=9.{{ stackhpc_pulp_repo_rocky_9_minor_version }}{% endif %}
43+
{% if os_distribution == 'rocky' && os_release == '10' %}--build-arg=ROCKY_VERSION=10.{{ stackhpc_pulp_repo_rocky_10_minor_version }}{% endif %}
4344
4445
stackhpc_overcloud_dib_env_vars_default:
4546
DIB_BLOCK_DEVICE_CONFIG: "{{ stackhpc_overcloud_dib_block_device_config_uefi_lvm }}"
@@ -67,7 +68,8 @@ stackhpc_overcloud_dib_env_vars_default:
6768
stackhpc_overcloud_dib_env_vars_ark:
6869
DIB_CONTAINERFILE_BUILDOPTS: >-
6970
--build-arg=ROCKY_USE_CUSTOM_DNF_MIRRORS=true
70-
--build-arg=ROCKY_CUSTOM_DNF_MIRROR_URLS={{ [stackhpc_repo_rocky_9_baseos_url, stackhpc_repo_rocky_9_appstream_url] | join(',') }}
71+
{% if os_distribution == 'rocky' && os_release == '9' %}--build-arg=ROCKY_CUSTOM_DNF_MIRROR_URLS={{ [stackhpc_repo_rocky_9_baseos_url, stackhpc_repo_rocky_9_appstream_url] | join(',') }}{% endif %}
72+
{% if os_distribution == 'rocky' && os_release == '10' %}--build-arg=ROCKY_CUSTOM_DNF_MIRROR_URLS={{ [stackhpc_repo_rocky_10_baseos_url, stackhpc_repo_rocky_10_appstream_url] | join(',') }}{% endif %}
7173
{{ stackhpc_overcloud_dib_container_opts_default }}
7274
DIB_DISTRIBUTION_MIRROR: "{{ stackhpc_repo_ubuntu_noble_url if os_distribution == 'ubuntu' else '' }}"
7375
# Ensure upstream repofiles are re-enabled after image build, otherwise `yum.repos.d` is left empty

etc/kayobe/stackhpc.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ stackhpc_repo_distribution: "development"
2626
stackhpc_include_os_minor_version_in_repo_url: false
2727

2828
stackhpc_rocky_9_url_version: "{{ '9.' + stackhpc_pulp_repo_rocky_9_minor_version | string if stackhpc_include_os_minor_version_in_repo_url | bool else '9' }}"
29+
stackhpc_rocky_10_url_version: "{{ '10.' + stackhpc_pulp_repo_rocky_10_minor_version | string if stackhpc_include_os_minor_version_in_repo_url | bool else '10' }}"
2930

3031
###############################################################################
3132
# Debs
@@ -151,6 +152,14 @@ stackhpc_repo_epel_9_version: "{{ stackhpc_repo_distribution }}"
151152
stackhpc_repo_elrepo_9_url: "{{ stackhpc_repo_mirror_url }}/pulp/content/elrepo/elrepo/el9/{{ kolla_base_arch }}/{{ stackhpc_repo_elrepo_9_version }}"
152153
stackhpc_repo_elrepo_9_version: "{{ stackhpc_repo_distribution }}"
153154

155+
# Rocky 10 AppStream
156+
stackhpc_repo_rocky_10_appstream_url: "{{ stackhpc_repo_mirror_url }}/pulp/content/rocky/{{ stackhpc_rocky_10_url_version }}/AppStream/{{ kolla_base_arch }}/os/{{ stackhpc_repo_rocky_10_appstream_version }}"
157+
stackhpc_repo_rocky_10_appstream_version: "{{ stackhpc_repo_distribution }}"
158+
159+
# Rocky 10 BaseOS
160+
stackhpc_repo_rocky_9_baseos_url: "{{ stackhpc_repo_mirror_url }}/pulp/content/rocky/{{ stackhpc_rocky_10_url_version }}/BaseOS/{{ kolla_base_arch }}/os/{{ stackhpc_repo_rocky_10_baseos_version }}"
161+
stackhpc_repo_rocky_9_baseos_version: "{{ stackhpc_repo_distribution }}"
162+
154163
###############################################################################
155164
# Sources
156165

0 commit comments

Comments
 (0)