-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathvariables.tf
196 lines (160 loc) · 4.28 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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
# NETWORK VARIABLES
variable network_vpc_id {
type = "string"
}
# OPENVPN INSTANCE VARIABLES
variable stack_name {
default = "openvpn"
}
variable openvpn_ami {
type = "string"
}
variable openvpn_instance_size {
default = "t2.medium"
type = "string"
}
variable openvpn_key_name {
type = "string"
}
variable openvpn_subnet_id {
type = "string"
}
variable openvpn_route53_public_zone_id {
type = "string"
}
variable openvpn_public_dns {
type = "string"
}
variable openvpn_route53_private_zone_id {
type = "string"
}
variable openvpn_private_dns {
type = "string"
}
###############################################################################
### OPENVPN USER DATA
###############################################################################
# public_hostname
# -- hostname that clients should use to contact the server.
variable openvpn_public_hostname {
type = "string"
}
# admin_user (default=openvpn)
# -- Access Server administrative account name.
variable openvpn_admin_user {
type = "string"
default = "openvpn"
}
# admin_pw
# -- administrative account initial password. Note that this parameter is
# communicated to the instance via a cleartext channel. A more secure method
# would be to ssh to the instance and use the passwd command to set the password.
variable openvpn_admin_pswd {
type = "string"
}
# license
#-- Access Server license key (without a license key, the Access Server will
# support up to 2 concurrent connections).
variable openvpn_license {
type = "string"
default = ""
}
# reroute_gw (boolean, default=0)
# -- if 1, clients will route internet traffic through the VPN.
variable openvpn_reroute_gw {
default = 0
}
# reroute_dns (boolean, default=0)
# -- if 1, clients will route DNS queries through the VPN.
variable openvpn_reroute_dns {
default = 0
}
###############################################################################
### SECURITY GROUP CONFIGURATION
###############################################################################
# List of additional security group ID's to add to EC2 instance
variable custom_security_groups {
type = "list"
default = []
}
# WHITELIST CIDR_BLOCK(s) FOR ALL TRAFFIC (All TCP/UDP)
# (e.g. Private CIDR_BLOCK)
variable openvpn_all_access {
type = "list"
}
# WHITELIST CIDR_BLOCK(s) FOR SSH TRAFFIC (TCP 22)
# (e.g. Office Network CIDR_BLOCK)
variable openvpn_ssh_access {
type = "list"
}
# WHITELIST CIDR_BLOCK(s) FOR HTTPS TRAFFIC (TCP 443)
# (e.g. Public Network, Office Network CIDR_BLOCK)
variable openvpn_https_access {
type = "list"
default = [
"0.0.0.0/0",
]
}
# WHITELIST CIDR_BLOCK(s) FOR ADMIN TRAFFIC (TCP 943)
# (e.g. Public Network CIDR_BLOCK)
variable openvpn_admin_access {
type = "list"
default = [
"0.0.0.0/0",
]
}
# WHITELIST CIDR_BLOCK(s) FOR UDP TRAFFIC (UDP 1194)
# (e.g. Public Network)
variable openvpn_udp_access {
type = "list"
default = [
"0.0.0.0/0",
]
}
###############################################################################
### LDAP CONFIGURATION
###############################################################################
variable openvpn_ldap_server_1 {
type = "string"
}
variable openvpn_ldap_server_2 {
type = "string"
}
variable openvpn_ldap_bind_dn {
type = "string"
}
variable openvpn_ldap_bind_pswd {
type = "string"
}
variable openvpn_ldap_base_dn {
type = "string"
}
variable openvpn_ldap_uname_attr {
type = "string"
default = "uid"
# sAMAccountName for Active Directory
# uid for OpenLDAP
}
variable openvpn_ldap_add_req {
type = "string"
}
variable openvpn_ldap_use_ssl {
type = "string"
default = "always"
}
###############################################################################
### USE PREALLOCATED FIXED ELASTIC IP
###############################################################################
variable public_ip {
default = ""
type = "string"
description = "To use preallocated static IP address, please set variable to existing EIP. If it's empty, it will be created dynamically."
}
###############################################################################
### GOOGLE AUTHENTICATOR CONFIGURATION
###############################################################################
variable use_google_auth {
default = "0"
type = "string"
description = "Use Google Authenticator for 2FA"
}