Neckrez

Cloud-init user-data generator

Describe how a fresh server should look after its first boot and get a #cloud-config file: a sudo user with your SSH key, updates, ufw, fail2ban, automatic security updates, swap and Docker. Paste it into the cloud-init field when you deploy.

How to use it

Check what happened

Log in and run cloud-init status --long. The full log is in /var/log/cloud-init-output.log. To check a file before deploying, run cloud-init schema -c cloud-init.yaml on any machine with cloud-init installed.

Ubuntu and Debian

The file uses apt, the sudo group and ufw, which fit Ubuntu and Debian images. On Rocky or AlmaLinux, use the wheel group and firewalld instead.

More tools