Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions 02_configure_host.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,25 @@ if [[ "${NODES_PLATFORM}" == "baremetal" ]]; then

switch_to_internal_dns

# When MIRROR_IMAGES is configured, the local registry must be running
# before 04_setup_ironic.sh attempts to mirror release images into it.
# This covers virtual-baremetal (sushy-emulator) CI environments that
# set NODES_PLATFORM=baremetal together with MIRROR_IMAGES=true.
if use_registry "podman"; then
setup_local_registry
rm -f "${REGISTRY_CREDS}"
sudo podman login --authfile "${REGISTRY_CREDS}" \
-u "${REGISTRY_USER}" -p "${REGISTRY_PASS}" \
"${LOCAL_REGISTRY_DNS_NAME}":"${LOCAL_REGISTRY_PORT}"
elif use_registry ""; then
setup_local_registry
else
echo '{}' | sudo dd of="${REGISTRY_CREDS}"
fi
if [ -f "${REGISTRY_CREDS}" ]; then
sudo chown "$USER":"$USER" "${REGISTRY_CREDS}"
fi

exit 0
fi

Expand Down