Deliver master.conf to a node that has no Varaverk on it yet, which is the node that needs it
Phase 1 exists to hand the partner its identity before the install, but the push refused any host without varaverk.cfg — so the conf could only ever reach a node that no longer needed it to be told who it was. It now resolves the remote's conf directory across both install layouts and creates the internal one when neither exists.
This commit is contained in:
@@ -535,17 +535,22 @@ if [[ "$PHASE1_ONLY" == true ]]; then
|
||||
echo " Duration: $(format_duration $(( END - START )))"
|
||||
echo ""
|
||||
echo " HOST1 is fully set up. HOST2 ($MIRROR) can now install the Varaverk plugin."
|
||||
# The push needs a Varaverk install to land in — varaverk.cfg and Configurations/ have to
|
||||
# exist on the far side. Before the plugin is installed there is nowhere to put the file, so
|
||||
# a skip here is the expected result of running Phase 1 first, not a fault to chase.
|
||||
# The push no longer waits for a Varaverk install on the far side. It resolves the partner's
|
||||
# conf directory across both layouts and creates the internal one if neither exists, so the
|
||||
# conf arrives BEFORE the plugin — which is the order that makes it useful. The .plg only
|
||||
# seeds master.conf from the template when none is present, so what lands here survives the
|
||||
# install and the wizard reads its identity straight out of it.
|
||||
if [[ "$CONF_PUSH_OK" == true ]]; then
|
||||
echo " master.conf is on $MIRROR — the wizard will find it and take the partner path."
|
||||
echo " master.conf is on $MIRROR — the wizard will find it and take the partner path,"
|
||||
echo " already knowing $MY_ID and $MIRROR_ID. If the operator picks flash storage there,"
|
||||
echo " storage_migrate.sh moves the conf to appdata with the rest of the install."
|
||||
else
|
||||
echo " master.conf was NOT delivered — $MIRROR has no Varaverk install to receive it yet."
|
||||
echo " That is expected at this stage. Once the plugin is installed there, either:"
|
||||
echo " • re-run: bash Partnership/partnership_onboard.sh --phase1-only --skip-ssh"
|
||||
echo " master.conf was NOT delivered. Phase 1 seeds it into a bare host, so this is a"
|
||||
echo " real failure, not the pre-install state — check SSH and that /boot is writable"
|
||||
echo " on $MIRROR. Retry with:"
|
||||
echo " • bash Partnership/partnership_onboard.sh --phase1-only --skip-ssh"
|
||||
echo " • or push from Scheduler → master.conf → Save Conf"
|
||||
echo " • or, from HOST2's Setup tab, use 'Pull from HOST1' on the master.conf row"
|
||||
echo " • or, once the plugin is installed, 'Pull from HOST1' on HOST2's Setup tab"
|
||||
fi
|
||||
echo " When HOST2 completes its onboard, it will automatically trigger Phase 2 here."
|
||||
echo "━━━━━━━━━━━━━━━━━━━━━━━"
|
||||
|
||||
Reference in New Issue
Block a user