@@ -22,6 +22,7 @@ stackhpc_overcloud_dib_name: "deployment_image"
22
22
# StackHPC overcloud DIB image elements.
23
23
stackhpc_overcloud_dib_elements :
24
24
- " {{ 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 %}"
25
26
- " cloud-init-datasources"
26
27
- " {% if os_distribution == 'rocky' %}selinux-permissive{% endif %}"
27
28
- " enable-serial-console"
@@ -34,7 +35,9 @@ stackhpc_overcloud_dib_elements:
34
35
- " {% if os_distribution == 'ubuntu' %}sudoers{% endif %}"
35
36
36
37
# 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 :
38
41
DIB_BLOCK_DEVICE_CONFIG : " {{ stackhpc_overcloud_dib_block_device_config_uefi_lvm }}"
39
42
DIB_BOOTLOADER_DEFAULT_CMDLINE : " nofb nomodeset gfxpayload=text net.ifnames=1 rd.auto"
40
43
DIB_GRUB_TIMEOUT : " 5"
@@ -43,22 +46,22 @@ stackhpc_overcloud_dib_env_vars:
43
46
DIB_CONTAINERFILE_RUNTIME : " docker"
44
47
DIB_CONTAINERFILE_NETWORK_DRIVER : " host"
45
48
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 '' }}"
50
49
DIB_DRACUT_ENABLED_MODULES_DEFAULT_CONFIG : " {{ stackhpc_overcloud_dib_dracut_enabled_modules_default_config }}"
51
50
DIB_RELEASE : " {{ overcloud_dib_os_release }}"
52
51
DIB_SUDOERS_FILENAME : " no-fqdn"
53
52
# Avoid DNS queries during sudo commands, since we might not always have working DNS.
54
53
DIB_SUDOERS_CONFIG : |
55
54
Defaults !fqdn
56
- # FIXME: Support templating repo files.
57
- # DIB_YUM_MINIMAL_BOOTSTRAP_REPOS: /path/to/dir/containing/dib-mirror-*.repo
58
55
YUM : dnf
59
56
# Workaround for stack user home ownership bug
60
57
DIB_IMAGE_CACHE : " /tmp/yum"
61
58
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
+
62
65
# StackHPC overcloud DIB image packages.
63
66
stackhpc_overcloud_dib_packages :
64
67
- " ethtool"
0 commit comments