Skip to content

Commit

Permalink
Custom deploy: do not require an ISO
Browse files Browse the repository at this point in the history
It is possible to only use PXE artefacts, in which case we need to
generate an ignition file, but don't need to customize the ISO.
  • Loading branch information
dtantsur committed Jul 15, 2021
1 parent 4300542 commit 9538e37
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/configure-coreos-ipa
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
. /bin/ironic-common.sh
. /bin/coreos-ipa-common.sh

set -x

export IRONIC_INSPECTOR_VLAN_INTERFACES=${IRONIC_INSPECTOR_VLAN_INTERFACES:-all}

IRONIC_CERT_FILE=/certs/ironic/tls.crt
Expand All @@ -19,4 +21,6 @@ else
fi

render_j2_config /tmp/ironic-python-agent.ign.j2 "$IGNITION_FILE"
coreos-installer iso ignition embed -i "$IGNITION_FILE" -f "$ISO_FILE"
if [ -f "$ISO_FILE" ]; then
coreos-installer iso ignition embed -i "$IGNITION_FILE" -f "$ISO_FILE"
fi

0 comments on commit 9538e37

Please sign in to comment.