7 Commits

Author SHA1 Message Date
CanbiZ (MickLesk)
0b20d464c5 port ssh keys from build.func into cloudinit 2026-02-04 11:21:33 +01:00
CanbiZ (MickLesk)
e7057f29d4 Add interactive SSH key selection for cloud-init
Make SSH key provisioning explicit and interactive for cloud-init VMs. Default CLOUDINIT_SSH_KEYS is now empty; new helper functions discover and extract public keys from common host files, count them, and present a whiptail menu (import all host keys, paste one key, specify a file, or none). configure_cloudinit_ssh_keys writes selected keys to a temp file and sets CLOUDINIT_SSH_KEYS accordingly (removing the temp file if empty). setup_cloud_init now only applies --sshkeys when CLOUDINIT_SSH_KEYS is explicitly provided and logs the source, and vm/docker-vm.sh invokes the key selection UI for cloud-init VMs.
2026-02-04 11:16:41 +01:00
Tobias
c5786b9210 happ new year - well a bit late :D 2026-01-06 12:36:02 +01:00
CanbiZ
2b9851ba38 Temporarily disable 'set -u' in cloud-init.func
Disables 'unbound variable' errors at the start of the script to prevent issues with unset variables, and restores the previous shell options at the end. This ensures compatibility and avoids unexpected script failures.
2025-12-03 13:31:17 +01:00
CanbiZ
c961dffcf1 Fix base package pre-installation check in UniFi VM script
Update the logic for detecting errors during base package pre-installation in unifi-os-server-vm.sh by checking for 'error' in the output. Also correct URLs in cloud-init.func to use the correct repository path.
2025-12-03 13:28:30 +01:00
CanbiZ
40b9867653 Update cloud-init.func 2025-12-01 12:51:51 +01:00
CanbiZ
43dd7aacc8 Cleanup 2025-12-01 10:19:04 +01:00