about summary refs log tree commit diff
path: root/terraform/cloud-init.cfg
blob: 75fa7c7326ff3a3f3a8f36138b8c76eb38252e42 (plain)
1
2
3
4
5
6
7
8
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