Skip to content

Userdata configuration for Tailscale to use in your cloud server

Notifications You must be signed in to change notification settings

lbrlabs/terraform-cloudinit-tailscale

Repository files navigation

Inputs

Name Description Type Default Required
accept_dns Accept DNS configuration from Tailscale bool true no
accept_routes Accept routes from Tailscale bool false no
additional_parts Additional user defined part blocks for the cloudinit_config data source
list(object({
filename = string
content_type = optional(string)
content = optional(string)
merge_type = optional(string)
}))
[] no
advertise_connector Advertise this node as an app connector bool false no
advertise_exit_node Offer to be an exit node for internet traffic for the tailnet bool false no
advertise_routes Routes to advertise to other nodes list(string) [] no
advertise_tags ACL tags to request; each must start with 'tag:' (e.g. 'tag:eng,tag:montreal,tag:ssh') list(string) [] no
auth_key Node authorization key; if it begins with 'file:', then it's a path to a file containing the authkey string n/a yes
base64_encode Whether to base64 encode the cloud-init data bool true no
enable_ssh Enable SSH access via Tailscale bool false no
exit_node Tailscale exit node (IP or base name) for internet traffic string "" no
exit_node_allow_lan_access Allow direct access to the local network when routing traffic via an exit node bool false no
force_reauth force reauthentication bool false no
gzip Whether to gzip the cloud-init data bool false no
hostname Hostname of the instance string "" no
json output in JSON format bool false no
login_server base URL of control server string "https://controlplane.tailscale.com" no
max_retries maximum number of retries to connect to the control server number 3 no
netfilter_mode netfilter mode string "on" no
operator Unix username to allow to operate on tailscaled without sudo string "" no
reset reset unspecified settings to their default values bool false no
retry_delay delay in seconds between retries to connect to the control server number 5 no
shields_up don't allow incoming connections bool false no
snat_subnet_routes source NAT traffic to local routes advertised with --advertise-routes bool true no
stateful_filtering apply stateful filtering to forwarded packets bool false no
timeout maximum amount of time to wait for tailscaled to enter a Running state string "0s" no

Modules

No modules.

Outputs

Name Description
rendered n/a

Providers

Name Version
cloudinit >= 2.0

Requirements

Name Version
terraform >= 1.0
cloudinit >= 2.0

Resources

Name Type
cloudinit_config.main data source

About

Userdata configuration for Tailscale to use in your cloud server

Resources

Stars

Watchers

Forks

Packages

No packages published