Hi Stefanita,
I wanted to do something similar with a few HC4's (also to run Kubernetes, incidentally ). I settled on this:
- Install authorized_keys in the image using customize-image.sh - https://docs.armbian.com/Developer-Guide_User-Configurations/#user-provided-image-customization-script
- SSH to each sbc after first boot, enter a root password and then cancel the rest of the setup script. It looked to me like the script does some important things before that point.
- Configure the rest with Ansible.
If you found a better way to boot non-interactively I'd be happy to hear!
Best regards,
Oscar
--- userpatches/customize-image.sh.default 2024-04-30 08:20:03.777276669 +0200
+++ userpatches/customize-image.sh 2024-01-28 23:46:07.822794026 +0100
@@ -36,6 +36,12 @@
# your code here
;;
esac
+
+ # install ssh keys
+ mkdir /root/.ssh
+ chmod 700 /root/.ssh
+ cat /tmp/overlay/id_ed25519.pub >> /root/.ssh/authorized_keys
+ chmod 600 /root/.ssh/authorized_keys
} # Main
InstallOpenMediaVault() {