Fix installation again

This commit is contained in:
2023-11-04 15:36:23 +01:00
parent b77d8f02b6
commit 4e1548c91e
@@ -12,12 +12,8 @@ users:
ssh_authorized_keys:
- ${terraform_public_ssh_key}
packages:
- apt:
- snapd
- fail2ban
- ufw
- snap:
- [kubectl, --classic]
- fail2ban
- ufw
package_update: true
package_upgrade: true
package_reboot_if_required: true
@@ -48,6 +44,8 @@ runcmd:
- sed -i '$a AllowUsers ${admin_user} terraform' /etc/ssh/sshd_config
- curl https://packages.hetzner.com/hcloud/deb/hc-utils_0.0.4-1_all.deb -o /tmp/hc-utils_0.0.4-1_all.deb -s
- apt install /tmp/hc-utils_0.0.4-1_all.deb
- apt install snapd
- snap install kubectl --classic
- snap install microk8s --channel ${microk8s_channel}
- mkdir -p /home/terraform/.kube
- microk8s kubectl config view --raw > /home/terraform/.kube/config