@@ -22,6 +22,7 @@ stackhpc_overcloud_dib_name: "deployment_image"
2222# StackHPC overcloud DIB image elements.
2323stackhpc_overcloud_dib_elements :
2424 - " {{ os_distribution }}-{% if os_distribution == 'rocky' %}container-stackhpc{% else %}minimal{% endif %}"
25+ - " {% if os_distribution == 'ubuntu' and stackhpc_repo_mirror_auth_proxy_enabled %}apt-no-verify-peer{% endif %}"
2526 - " cloud-init-datasources"
2627 - " {% if os_distribution == 'rocky' %}selinux-permissive{% endif %}"
2728 - " enable-serial-console"
@@ -41,18 +42,16 @@ stackhpc_overcloud_dib_env_vars:
4142 DIB_CONTAINERFILE_RUNTIME : " docker"
4243 DIB_CONTAINERFILE_NETWORK_DRIVER : " host"
4344 DIB_CONTAINERFILE_DOCKERFILE : " /opt/kayobe/src/stackhpc-image-elements/elements/rocky-container-stackhpc/containerfiles/9-stackhpc"
44- # NOTE: Not currently syncing Ubuntu packages, since the on_demand mirror in
45- # Ark does not work if the upstream mirror pulls packages (which it does
46- # sometimes).
47- # DIB_DISTRIBUTION_MIRROR: "{{ stackhpc_repo_ubuntu_focal_url if os_distribution == 'ubuntu' else '' }}"
45+ DIB_CONTAINERFILE_BUILDOPTS : >-
46+ --build-arg=ROCKY_USE_MIRRORS=true
47+ --build-arg=ROCKY_MIRROR_URLS={{ [stackhpc_repo_rocky_9_baseos_url, stackhpc_repo_rocky_9_appstream_url] | join(',') }}
48+ DIB_DISTRIBUTION_MIRROR : " {{ stackhpc_repo_ubuntu_jammy_url if os_distribution == 'ubuntu' else '' }}"
4849 DIB_DRACUT_ENABLED_MODULES_DEFAULT_CONFIG : " {{ stackhpc_overcloud_dib_dracut_enabled_modules_default_config }}"
4950 DIB_RELEASE : " {{ overcloud_dib_os_release }}"
5051 DIB_SUDOERS_FILENAME : " no-fqdn"
5152 # Avoid DNS queries during sudo commands, since we might not always have working DNS.
5253 DIB_SUDOERS_CONFIG : |
5354 Defaults !fqdn
54- # FIXME: Support templating repo files.
55- # DIB_YUM_MINIMAL_BOOTSTRAP_REPOS: /path/to/dir/containing/dib-mirror-*.repo
5655 YUM : dnf
5756 # Workaround for stack user home ownership bug
5857 DIB_IMAGE_CACHE : " /tmp/yum"
0 commit comments