Skip to content

Deploy Tailscale onto Hetzner via Terraform

License

Notifications You must be signed in to change notification settings

alexraskin/tails-deployer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TailsDeployer

Deploy Tailscale onto a Hetzner cloud server with Terraform.

Usage

  1. Install Terraform

  2. Clone this repository

  3. Create a terraform.tfvars file with the following content:

hetzner_token      = "" # https://console.hetzner.cloud/projects/<project_id>/security/api-tokens
ssh_public_key     = "" # e.g. "ssh-rsa ...."
tailscale_auth_key = "" # https://login.tailscale.com/admin/settings/keys
server_username    = "" # e.g. "tailscale"
server_name        = "" # e.g. "tailscale-server"
tailscale_api_key = "" # https://login.tailscale.com/admin/settings/authkeys
  1. Run terraform init

  2. Run terraform apply

  3. Log into Tailscale and authorize the new device.

  4. Profit!

Notes

  • The server will be created in the hel datacenter by default. You can change this by setting the location variable in terraform.tfvars to fsn1 or hel1.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Deploy Tailscale onto Hetzner via Terraform

Topics

Resources

License

Stars

Watchers

Forks