From 9bc632820018063141b0667505a7c458dd0465da Mon Sep 17 00:00:00 2001 From: Nicholas Archuletta Date: Wed, 8 Jan 2025 23:30:38 +0000 Subject: [PATCH] fix: add hostname to user-data --- command-handler/src/util/get-user-data.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/command-handler/src/util/get-user-data.js b/command-handler/src/util/get-user-data.js index 15fbc24..30ce756 100644 --- a/command-handler/src/util/get-user-data.js +++ b/command-handler/src/util/get-user-data.js @@ -6,6 +6,8 @@ export default function configUserData(serverName) { const userData = ` #cloud-config + hostname: ${serverName} + manage_etc_hosts: true runcmd: - ['tailscale', 'up', '--authkey=${process.env.TAILSCALE_AUTH_KEY}', '--hostname=${serverName}'] - ['tailscale', 'set', '--ssh']