Files
infra-k8s/tofu/files/cloud-init.yaml
Evrard Van Espen 8fc60f9d8b Add tofu files
2025-11-23 11:22:21 +00:00

19 lines
370 B
YAML

#cloud-config
users:
- name: kubeadmin
gecos: kubeadmin
sudo: ALL=(ALL) NOPASSWD:ALL
groups: wheel, root
lock_passwd: false
ssh_authorized_keys:
- ${ssh_public_key}
passwd: "${kubeadmin_password_hash}"
packages:
- openssh-server
runcmd:
- systemctl enable --now sshd
- systemctl restart sshd
- [touch, /tmp/cloud-init-complete]