Cloud-Init Configuration Generator

Easily generate Cloud-Init configurations for Ubuntu and Debian. Customize your server setup with DNS, NTP, APT sources, firewall rules, SSH keys, and more!

Set the hostname for your server.
Specify DNS servers for your server (e.g., 8.8.8.8, 8.8.4.4).
Specify NTP servers for time synchronization (e.g., pool.ntp.org, ntp.ubuntu.com).
Add custom APT repositories for package management.
Configure the firewall to allow or deny SSH access.
Add an SSH key for the root user for secure access.

Live Preview

#cloud-config generated on 2024/09/16 by https://linuxpatch.com/

manage_etc_hosts: true
resolve:
  nameservers:
    - 8.8.8.8
    - 1.1.1.1

ntp:
  servers:
    - pool.ntp.org
    - ntp.ubuntu.com

apt:
  sources:
    source1:
      source: deb http://archive.ubuntu.com/ubuntu noble main restricted universe multiverse
    source2:
      source: deb http://archive.ubuntu.com/ubuntu noble-updates main restricted universe multiverse
    source3:
      source: deb http://archive.ubuntu.com/ubuntu noble-security main restricted universe multiverse

firewall:
  enabled: true
  rules:
    - allow ssh