fix(ci): configure Ubuntu box prewarming

- Use the Molecule Ubuntu SSH settings when creating its linked-clone master
- Bound a prewarm SSH failure to ten minutes
- Verify the generated Vagrantfile in the master-preparation fixture
This commit is contained in:
Timothy Stewart
2026-08-01 08:41:43 -05:00
committed by Techno Tim
parent 4c50fbbe10
commit bbca35331d
3 changed files with 18 additions and 0 deletions
@@ -5,6 +5,9 @@ set -Eeuo pipefail
printf '%s\n' "$*" >> "$MOCK_VAGRANT_LOG"
case "${1:-}" in
up)
if [[ -n "${MOCK_VAGRANTFILE_CAPTURE:-}" ]]; then
cp -- "$VAGRANT_CWD/Vagrantfile" "$MOCK_VAGRANTFILE_CAPTURE"
fi
counter_file="$MOCK_VBOX_STATE/counter"
counter=0
[[ ! -r "$counter_file" ]] || counter="$(cat "$counter_file")"