about summary refs log tree commit diff
path: root/terraform/cloud-init.cfg
diff options
context:
space:
mode:
authormakefunstuff <[email protected]>2024-07-18 21:09:37 +0200
committermakefunstuff <[email protected]>2024-07-18 21:09:37 +0200
commit07822ea3f2239cf9cd3335ad2d7fb0aab7a3e1dc (patch)
treee9f4e9c69d3653b19139da565e5426b2c70806f8 /terraform/cloud-init.cfg
parenta52d9c49b7f4166b18a49b4907a2b0afba3aac05 (diff)
downloadk3s-lab-07822ea3f2239cf9cd3335ad2d7fb0aab7a3e1dc.tar.gz
infra updates
Diffstat (limited to 'terraform/cloud-init.cfg')
-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