Skip to content

Instantly share code, notes, and snippets.

@denzuko
Created January 17, 2022 06:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save denzuko/0ab64aecbeac5fba578b89e5dde8fa2e to your computer and use it in GitHub Desktop.
Save denzuko/0ab64aecbeac5fba578b89e5dde8fa2e to your computer and use it in GitHub Desktop.
Example user-data
#cloud-config
# vim: set ts=2 sw=2 filetype=yaml:
#/boot/user-data
---
hostname: pi.local
manage_etc_hosts: true
users:
- name: pirate
gecos: "Hypriot Pirate"
sudo: ALL=(ALL) NOPASSWD:ALL
shell: /bin/bash
groups: users,docker,video,input
plain_text_passwd: hypriot
lock_passwd: false
ssh_pwauth: true
chpasswd: { expire: false }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment