Add cloud-init-example

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2023-03-02 19:14:58 +01:00
parent 24c1842a27
commit 278f318b64
Signed by: luzifer
GPG key ID: D91C3E91E4CAD6F5

30
cloud-init-example.yaml Normal file
View file

@ -0,0 +1,30 @@
#cloud-config
disable_root: true
hostname: "REPLACEME"
resize_rootfs: true
mounts:
- [/dev/sdb, /data, xfs]
users:
- name: root
lock_passwd: true
- name: luzifer
groups: admin, docker, users
passwd: '$6$rounds=4096$REPLACEME'
sudo: 'ALL=(ALL) NOPASSWD:ALL'
shell: /bin/sh
lock_passwd: false
ssh_authorized_keys:
- 'REPLACEME'
updates:
network:
when: [ boot, hotplug ]
runcmd:
- [ /bin/sh, -c, 'uuidgen >/etc/machine-id' ]