Skip to content

Commit 3f8b16f

Browse files
fonta-rhclaude
andcommitted
Remove unused network config from baremetal path
Drop BAREMETAL_GATEWAY from config_example.sh — nothing in dev-scripts reads it; nodes get gateway from DHCP. Remove registry /etc/hosts + login block from 02_configure_host.sh baremetal path — PROVISIONING_HOST_EXTERNAL_IP resolves to the wrong IP (computed from node subnet, not provisioning host address), and the baremetal flow uses CI_TOKEN for registry auth, not a local registry. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent dc7a3f1 commit 3f8b16f

2 files changed

Lines changed: 0 additions & 18 deletions

File tree

02_configure_host.sh

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -97,19 +97,6 @@ if [[ "${NODES_PLATFORM}" == "baremetal" ]]; then
9797

9898
switch_to_internal_dns
9999

100-
sudo sed -i "/${LOCAL_REGISTRY_DNS_NAME}/d" /etc/hosts
101-
echo "${PROVISIONING_HOST_EXTERNAL_IP} ${LOCAL_REGISTRY_DNS_NAME}" | sudo tee -a /etc/hosts
102-
103-
if use_registry "podman"; then
104-
rm -f "${REGISTRY_CREDS}"
105-
sudo podman login --authfile "${REGISTRY_CREDS}" \
106-
-u "${REGISTRY_USER}" -p "${REGISTRY_PASS}" \
107-
"${LOCAL_REGISTRY_DNS_NAME}":"${LOCAL_REGISTRY_PORT}"
108-
elif ! use_registry "quay"; then
109-
echo '{}' | sudo dd of="${REGISTRY_CREDS}"
110-
fi
111-
sudo chown "$USER":"$USER" "${REGISTRY_CREDS}"
112-
113100
exit 0
114101
fi
115102

config_example.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -503,11 +503,6 @@ set -x
503503
#
504504
#export BAREMETAL_INGRESS_VIP="10.1.155.101"
505505

506-
# BAREMETAL_GATEWAY -
507-
# Default gateway for baremetal nodes.
508-
#
509-
#export BAREMETAL_GATEWAY="10.1.155.1"
510-
511506
# BAREMETAL_ISO_SERVER -
512507
# Full HTTP URL where the agent ISO is staged for Redfish VirtualMedia boot.
513508
# This is the only baremetal var NOT auto-generated by adoption — the user

0 commit comments

Comments
 (0)