Skip to content

Commit 94fc4df

Browse files
authored
Another attempt to update Ansible and metal3-dev-env (#1666)
* Reapply "Upgrade to Ansible 7 (#1523)" (#1665) This reverts commit 258ee33. * Pass the right interface name to metal3-dev-env firewall config The variable got changed upstream but we're still passing the old one. Remove no longer valid firewalld commands using even older interface names.
1 parent c7a4ac3 commit 94fc4df

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

01_install_requirements.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ if [ -z "${METAL3_DEV_ENV}" ]; then
1919
# TODO -- come up with a plan for continuously updating this
2020
# Note we only do this in the case where METAL3_DEV_ENV is
2121
# unset, to enable developer testing of local checkouts
22-
git reset 6a8fb0d5543970b5d628e1204a3b3d3f9f70a63f --hard
22+
git reset a994b1447f89e20ec9cc161700a9e829fd5d4b89 --hard
2323
popd
2424
fi
2525

2626
# This must be aligned with the metal3-dev-env pinned version above, see
2727
# https://github.com/metal3-io/metal3-dev-env/blob/master/lib/common.sh
28-
export ANSIBLE_VERSION=${ANSIBLE_VERSION:-"5.9.0"}
28+
export ANSIBLE_VERSION=${ANSIBLE_VERSION:-"7.1.0"}
2929

3030
# Speed up dnf downloads
3131
sudo sh -c "echo 'fastestmirror=1' >> /etc/dnf/dnf.conf"

02_configure_host.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -330,17 +330,13 @@ fi
330330
ANSIBLE_FORCE_COLOR=true ansible-playbook \
331331
-e "{use_firewalld: True}" \
332332
-e "provisioning_interface=$PROVISIONING_NETWORK_NAME" \
333-
-e "baremetal_interface=$BAREMETAL_NETWORK_NAME" \
334-
-e "{provisioning_host_ports: [80, ${LOCAL_REGISTRY_PORT}, 8000, ${INSTALLER_PROXY_PORT}, ${AGENT_PXE_SERVER_PORT}]}" \
333+
-e "external_interface=$BAREMETAL_NETWORK_NAME" \
334+
-e "{vm_host_ports: [80, ${LOCAL_REGISTRY_PORT}, 8000, ${INSTALLER_PROXY_PORT}, ${AGENT_PXE_SERVER_PORT}]}" \
335335
-e "vbmc_port_range=$VBMC_BASE_PORT:$VBMC_MAX_PORT" \
336336
$ALMA_PYTHON_OVERRIDE \
337337
-i ${VM_SETUP_PATH}/inventory.ini \
338338
-b -vvv ${VM_SETUP_PATH}/firewall.yml
339339

340-
# FIXME(stbenjam): ansbile firewalld module doesn't seem to be doing the right thing
341-
sudo firewall-cmd --zone=libvirt --change-interface=provisioning
342-
sudo firewall-cmd --zone=libvirt --change-interface=baremetal
343-
344340
# Need to route traffic from the provisioning host.
345341
if [ "$EXT_IF" ]; then
346342
sudo $IPTABLES -t nat -A POSTROUTING --out-interface $EXT_IF -j MASQUERADE

0 commit comments

Comments
 (0)