Skip to content

Instantly share code, notes, and snippets.

@zackbradys
Last active February 28, 2023 01:10
Show Gist options
  • Save zackbradys/251d5095dded9fa8e000f0207bda659a to your computer and use it in GitHub Desktop.
Save zackbradys/251d5095dded9fa8e000f0207bda659a to your computer and use it in GitHub Desktop.
#cloud-config
#simple cloud-init user-data
#reach out with questions to @zackbradys
package_update: true
packages:
- qemu-guest-agent
- sudo
- wget
- tree
- vim
package_upgrade: false
runcmd:
- - systemctl
- enable
- --now
- qemu-guest-agent.service
users:
- name: root
hashed_passwd: #HASHED-PWD-HERE
lock_passwd: false
shell: /bin/bash
ssh_authorized_keys:
- ssh-rsa #ID-RSA.PUB-HERE
- name: #USERNAME
hashed_passwd: #HASHED-PWD-HERE
lock_passwd: false
shell: /bin/bash
sudo: ALL=(ALL) NOPASSWD:ALL
ssh_authorized_keys:
- ssh-rsa #ID-RSA.PUB-HERE
disable_root: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment