hetzner-alpine-k8s/cloud-init-example.yaml
Knut Ahlers 278f318b64
Add cloud-init-example
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2023-03-02 19:14:58 +01:00

30 lines
478 B
YAML

#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' ]