8 ipmi_host=$(virsh -c qemu:///system net-dumpxml ${site}-baremetal | xmlstarlet sel -t -v "//network/ip/@address")
9 ipmi_port=$((6230+index-1))
10 boot_mac=$(virsh -c qemu:///system dumpxml "${site}-${name}" | xmlstarlet sel -t -v "//interface[source/@network='${site}-provisioning']/mac/@address")
12 mkdir -p build/site/${site}
13 cat <<EOF >build/site/${site}/machine-${index}-values.yaml
14 machineName: machine-${index}
15 bootMACAddress: ${boot_mac}
16 bmcAddress: ipmi://${ipmi_host}:${ipmi_port}