I am trying to create autoinstall configuration for automatic ubuntu server installation and remote access. For remote access I would like to use Tailscale VPN. This example of my user-data file:
#cloud-config
autoinstall:
version: 1
identity:
hostname: ubuntu-server
password: "$6$exDY1mhS4KUYCE/2$zmn9ToZwTKLhCw.b4/b.ZRTIZM30JZ4QrOQ2aOXJ8yk96xpcCof0kxKwuX1kqLG/ygbJ1f8wxED22bTL4F46P0"
username: ubuntu
late-commands:
- curl -fsSL https://tailscale.com/install.sh | sh
- tailscale up --auth-key=${OAUTH_CLIENT_SECRET}?ephemeral=true --advertise-tags=tag:ci
This user-data configuration works. In the tailscale cabinet I am able to see new node established. So the late-commands works. But after restart I am not able to find tailscale program on the ubuntu and machine is not connected to the VPN anymore.
Why Tailscale is not available anymore and how to fix it? Is there alternatives to tailscale in installing ubuntu-server using autoinstall and remote ssh connection over internet?