2025-04-17 22:24:54 +01:00
|
|
|
#cloud-config
|
2025-04-18 12:12:28 +01:00
|
|
|
manage_etc_hosts: true
|
|
|
|
|
resolv_conf:
|
|
|
|
|
nameservers:
|
|
|
|
|
- 8.8.8.8
|
|
|
|
|
- 1.1.1.1
|
2025-04-18 10:51:00 +01:00
|
|
|
|
|
|
|
|
preserve_hostname: false
|
2026-02-28 12:36:20 +00:00
|
|
|
|
|
|
|
|
users:
|
|
|
|
|
- name: micqdf
|
|
|
|
|
ssh_authorized_keys:
|
|
|
|
|
- ${SSH_KEY_PUBLIC}
|
2026-02-28 13:13:34 +00:00
|
|
|
|
|
|
|
|
runcmd:
|
2026-02-28 13:24:24 +00:00
|
|
|
- [ /run/current-system/sw/bin/sh, -lc, "set -eu; install -d -m 700 /var/lib/tailscale; rm -f /var/lib/tailscale/tailscaled.state" ]
|
|
|
|
|
- [ /run/current-system/sw/bin/sh, -lc, "set -eu; for i in 1 2 3 4 5; do /run/current-system/sw/bin/tailscale up --reset --auth-key='${TS_AUTHKEY}' --hostname='$(hostname)' --advertise-tags='tag:k8s' && exit 0; sleep 15; done; /run/current-system/sw/bin/tailscale up --reset --auth-key='${TS_AUTHKEY}' --hostname='$(hostname)'" ]
|