Skip to content

Instantly share code, notes, and snippets.

@ianmcmahon
Created February 15, 2021 06:03
Show Gist options
  • Save ianmcmahon/85b953825009500e4b9398370e05fe22 to your computer and use it in GitHub Desktop.
Save ianmcmahon/85b953825009500e4b9398370e05fe22 to your computer and use it in GitHub Desktop.
#cloud-config
hostname: ${hostname}
users:
- name: ubuntu
sudo: ALL=(ALL) NOPASSWD:ALL
groups: users, admin
home: /home/ubuntu
shell: /bin/bash
lock_passwd: false
ssh-authorized-keys: "ssh-rsa ..."
ssh_pwauth: false
disable_root: false
packages:
- htop
runcmd:
- apt update
- apt upgrade -y
- apt autoremove -y --purge
- reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment