mirror of
https://github.com/Luzifer/hetzner-alpine-k8s.git
synced 2024-12-20 18:01:19 +00:00
Add cloud-init-example
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
24c1842a27
commit
278f318b64
1 changed files with 30 additions and 0 deletions
30
cloud-init-example.yaml
Normal file
30
cloud-init-example.yaml
Normal 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' ]
|
||||
|
Loading…
Reference in a new issue