-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
178 lines (151 loc) · 4.37 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
variable "base64_encode" {
description = "Whether to base64 encode the cloud-init data"
type = bool
default = true
}
variable "gzip" {
description = "Whether to gzip the cloud-init data"
type = bool
default = false
}
variable "enable_ssh" {
description = "Enable SSH access via Tailscale"
type = bool
default = false
}
variable "hostname" {
description = "Hostname of the instance"
type = string
default = ""
}
variable "accept_dns" {
description = "Accept DNS configuration from Tailscale"
type = bool
default = true
}
variable "accept_routes" {
description = "Accept routes from Tailscale"
type = bool
default = false
}
variable "advertise_connector" {
description = "Advertise this node as an app connector"
type = bool
default = false
}
variable "advertise_exit_node" {
description = "Offer to be an exit node for internet traffic for the tailnet"
type = bool
default = false
}
variable "advertise_routes" {
description = "Routes to advertise to other nodes"
type = list(string)
default = []
}
variable "advertise_tags" {
description = "ACL tags to request; each must start with 'tag:' (e.g. 'tag:eng,tag:montreal,tag:ssh')"
type = list(string)
default = []
validation {
condition = length(var.advertise_tags) == 0 || alltrue([for tag in var.advertise_tags : startswith(tag, "tag:")])
error_message = "Each item in advertise_tags must start with 'tag:'."
}
}
variable "auth_key" {
description = "Node authorization key; if it begins with 'file:', then it's a path to a file containing the authkey"
type = string
}
variable "exit_node" {
description = "Tailscale exit node (IP or base name) for internet traffic"
type = string
default = ""
}
variable "exit_node_allow_lan_access" {
description = "Allow direct access to the local network when routing traffic via an exit node"
type = bool
default = false
}
variable "force_reauth" {
description = "force reauthentication"
type = bool
default = false
}
variable "json" {
description = "output in JSON format"
type = bool
default = false
}
variable "login_server" {
description = "base URL of control server"
type = string
default = "https://controlplane.tailscale.com"
}
variable "operator" {
description = "Unix username to allow to operate on tailscaled without sudo"
type = string
default = ""
}
variable "reset" {
description = "reset unspecified settings to their default values"
type = bool
default = false
}
variable "shields_up" {
description = "don't allow incoming connections"
type = bool
default = false
}
variable "timeout" {
description = "maximum amount of time to wait for tailscaled to enter a Running state"
type = string
default = "0s"
}
variable "netfilter_mode" {
description = "netfilter mode"
type = string
default = "on"
validation {
condition = contains(["on", "nodivert", "off"], var.netfilter_mode)
error_message = "Allowed values for netfilter_mode are \"on\", \"nodivert\", or \"off\"."
}
}
variable "snat_subnet_routes" {
description = "source NAT traffic to local routes advertised with --advertise-routes"
type = bool
default = true
}
variable "stateful_filtering" {
description = "apply stateful filtering to forwarded packets"
type = bool
default = false
}
variable "max_retries" {
description = "maximum number of retries to connect to the control server"
type = number
default = 3
}
variable "retry_delay" {
description = "delay in seconds between retries to connect to the control server"
type = number
default = 5
}
variable "additional_parts" {
description = "Additional user defined part blocks for the cloudinit_config data source"
type = list(object({
filename = string
content_type = optional(string)
content = optional(string)
merge_type = optional(string)
}))
default = []
}
variable "track" {
description = "Version of the Tailscale client to install"
type = string
default = "stable"
validation {
condition = contains(["stable", "unstable"], var.track)
error_message = "Allowed values for track are \"stable\", \"unstable\""
}
}