File tree Expand file tree Collapse file tree 4 files changed +13
-3
lines changed
kickstart-templates/includes
scenarios-bootc/presubmits Expand file tree Collapse file tree 4 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -240,16 +240,23 @@ EOF
240
240
# first on the host. This usually matches an image
241
241
# blueprint name.
242
242
# fips_enabled -- Enable FIPS mode (true or false).
243
+ # ipv6_only -- Only use IPv6 single stack configuration by explicitly
244
+ # disabling IPv4 (true or false)
243
245
prepare_kickstart () {
244
246
local vmname=" $1 "
245
247
local template=" $2 "
246
248
local boot_commit_ref=" $3 "
247
249
local fips_enabled=${4:- false}
250
+ local ipv6_only=${5:- false}
248
251
249
252
local -r full_vmname=" $( full_vm_name " ${vmname} " ) "
250
253
local -r output_dir=" ${SCENARIO_INFO_DIR} /${SCENARIO} /vms/${vmname} "
251
254
local -r vm_hostname=" ${full_vmname/ ./ -} "
252
255
local -r hostname=$( hostname)
256
+ local ipv6_opt=" "
257
+ if ${ipv6_only} ; then
258
+ ipv6_opt=" --noipv4 --ipv6 auto"
259
+ fi
253
260
254
261
validate_vm_hostname " ${vm_hostname} "
255
262
@@ -287,6 +294,7 @@ prepare_kickstart() {
287
294
-e " s|REPLACE_BOOT_COMMIT_REF|${boot_commit_ref} |g" \
288
295
-e " s|REPLACE_PULL_SECRET|${PULL_SECRET_CONTENT} |g" \
289
296
-e " s|REPLACE_HOST_NAME|${vm_hostname} |g" \
297
+ -e " s|REPLACE_IPV6_ONLY|${ipv6_opt} |g" \
290
298
-e " s|REPLACE_REDHAT_AUTHORIZED_KEYS|${REDHAT_AUTHORIZED_KEYS} |g" \
291
299
-e " s|REPLACE_FIPS_ENABLED|${fips_enabled} |g" \
292
300
-e " s|REPLACE_MIRROR_HOSTNAME|${hostname} |g" \
Original file line number Diff line number Diff line change 1
1
# Configure network to use DHCP and activate on boot
2
- network --bootproto =dhcp --device =link --activate --onboot =on --hostname =REPLACE_HOST_NAME
2
+ network --bootproto =dhcp --device =link --activate --onboot =on --hostname =REPLACE_HOST_NAME REPLACE_IPV6_ONLY
Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ WEB_SERVER_URL="http://[${VM_BRIDGE_IP}]:${WEB_SERVER_PORT}"
15
15
MIRROR_REGISTRY_URL=" $( hostname) :${MIRROR_REGISTRY_PORT} "
16
16
17
17
scenario_create_vms () {
18
- prepare_kickstart host1 kickstart-bootc.ks.template rhel95-bootc-source
18
+ # Enable IPv6 single stack in kickstart
19
+ prepare_kickstart host1 kickstart-bootc.ks.template rhel95-bootc-source false true
19
20
launch_vm --boot_blueprint rhel95-bootc --network " ${VM_IPV6_NETWORK} "
20
21
}
21
22
Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ WEB_SERVER_URL="http://[${VM_BRIDGE_IP}]:${WEB_SERVER_PORT}"
11
11
MIRROR_REGISTRY_URL=" ${VM_BRIDGE_IP} :${MIRROR_REGISTRY_PORT} "
12
12
13
13
scenario_create_vms () {
14
- prepare_kickstart host1 kickstart.ks.template rhel-9.4-microshift-source
14
+ # Enable IPv6 single stack in kickstart
15
+ prepare_kickstart host1 kickstart.ks.template rhel-9.4-microshift-source false true
15
16
launch_vm --network " ${VM_IPV6_NETWORK} "
16
17
}
17
18
You can’t perform that action at this time.
0 commit comments