@@ -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"
@@ -34,7 +35,9 @@ stackhpc_overcloud_dib_elements:
3435 - " {% if os_distribution == 'ubuntu' %}sudoers{% endif %}"
3536
3637# StackHPC overcloud DIB image environment variables.
37- stackhpc_overcloud_dib_env_vars :
38+ stackhpc_overcloud_dib_env_vars : " {{ stackhpc_overcloud_dib_env_vars_default | combine(stackhpc_overcloud_dib_env_vars_ark if stackhpc_build_overcloud_image_from_pulp_package_mirrors | bool else {}) }}"
39+
40+ stackhpc_overcloud_dib_env_vars_default :
3841 DIB_BLOCK_DEVICE_CONFIG : " {{ stackhpc_overcloud_dib_block_device_config_uefi_lvm }}"
3942 DIB_BOOTLOADER_DEFAULT_CMDLINE : " nofb nomodeset gfxpayload=text net.ifnames=1 rd.auto"
4043 DIB_GRUB_TIMEOUT : " 5"
@@ -43,22 +46,22 @@ stackhpc_overcloud_dib_env_vars:
4346 DIB_CONTAINERFILE_RUNTIME : " docker"
4447 DIB_CONTAINERFILE_NETWORK_DRIVER : " host"
4548 DIB_CONTAINERFILE_DOCKERFILE : " /opt/kayobe/src/stackhpc-image-elements/elements/rocky-container-stackhpc/containerfiles/9-stackhpc"
46- # NOTE: Not currently syncing Ubuntu packages, since the on_demand mirror in
47- # Ark does not work if the upstream mirror pulls packages (which it does
48- # sometimes).
49- # DIB_DISTRIBUTION_MIRROR: "{{ stackhpc_repo_ubuntu_focal_url if os_distribution == 'ubuntu' else '' }}"
5049 DIB_DRACUT_ENABLED_MODULES_DEFAULT_CONFIG : " {{ stackhpc_overcloud_dib_dracut_enabled_modules_default_config }}"
5150 DIB_RELEASE : " {{ overcloud_dib_os_release }}"
5251 DIB_SUDOERS_FILENAME : " no-fqdn"
5352 # Avoid DNS queries during sudo commands, since we might not always have working DNS.
5453 DIB_SUDOERS_CONFIG : |
5554 Defaults !fqdn
56- # FIXME: Support templating repo files.
57- # DIB_YUM_MINIMAL_BOOTSTRAP_REPOS: /path/to/dir/containing/dib-mirror-*.repo
5855 YUM : dnf
5956 # Workaround for stack user home ownership bug
6057 DIB_IMAGE_CACHE : " /tmp/yum"
6158
59+ stackhpc_overcloud_dib_env_vars_ark :
60+ DIB_CONTAINERFILE_BUILDOPTS : >-
61+ --build-arg=ROCKY_USE_MIRRORS=true
62+ --build-arg=ROCKY_MIRROR_URLS={{ [stackhpc_repo_rocky_9_baseos_url, stackhpc_repo_rocky_9_appstream_url] | join(',') }}
63+ DIB_DISTRIBUTION_MIRROR : " {{ stackhpc_repo_ubuntu_noble_url if os_distribution == 'ubuntu' else '' }}"
64+
6265# StackHPC overcloud DIB image packages.
6366stackhpc_overcloud_dib_packages :
6467 - " ethtool"
0 commit comments