Add tofu files
This commit is contained in:
18
tofu/files/cloud-init.yaml
Normal file
18
tofu/files/cloud-init.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
#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]
|
||||
Reference in New Issue
Block a user