about summary refs log tree commit diff
path: root/terraform/cloud-init.cfg
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--terraform/cloud-init.cfg9
1 files changed, 9 insertions, 0 deletions
diff --git a/terraform/cloud-init.cfg b/terraform/cloud-init.cfg
new file mode 100644
index 0000000..75fa7c7
--- /dev/null
+++ b/terraform/cloud-init.cfg
@@ -0,0 +1,9 @@
+
+#cloud-config
+hostname: k3s-node
+ssh_authorized_keys:
+  - ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAr9Y6...your-public-key... user@hostname
+runcmd:
+  - echo "#!/bin/bash" > /usr/local/bin/k3s-install.sh
+  - echo "curl -sfL https://get.k3s.io | sh -" >> /usr/local/bin/k3s-install.sh
+  - chmod +x /usr/local/bin/k3s-install.sh