Hello!
I managed to successfully clone the FreeBSD images for versions 12.3 and 13.0 but I have two small issues with the "FreeBSD - cloudinit" combination.
Specifically, I intend to activate the `sshd` service from the first boot and set the root user password.
The lines below do exactly the right thing in Linux but not in FreeBSD.
Any tip is welcome.
EDIT: I realised that default images don't have cloud-init installed.
I managed to successfully clone the FreeBSD images for versions 12.3 and 13.0 but I have two small issues with the "FreeBSD - cloudinit" combination.
Specifically, I intend to activate the `sshd` service from the first boot and set the root user password.
The lines below do exactly the right thing in Linux but not in FreeBSD.
YAML:
chpasswd:
list: |
root:RANDOM-PASSWORD
expire: True
YAML:
runcmd:
- sed -i -e '/^PermitRootLogin/s/^.*$/PermitRootLogin yes/' /etc/ssh/sshd_config
- sed -i -e ' root' /etc/ssh/sshd_config
- systemctl restart sshd
Any tip is welcome.
EDIT: I realised that default images don't have cloud-init installed.