-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvariables.tf
102 lines (80 loc) · 2.16 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
# ----------------------------------------------------------------
# Instance Variables
variable "instance_type" {
description = "The type of instance to start."
default = "t2.micro"
}
variable "instance_key_name" {
description = "The key name of the instance."
default = "master"
}
variable "instance_profile_name" {
description = "The name of IAM instance profile for the instance."
}
variable "availability_zone" {
description = "The AZ to start the instance in."
default = ""
}
variable "ebs_volume_id" {
description = "The ID of EBS volume to store OpenVPN keys."
default = ""
}
# ----------------------------------------------------------------
# ECS Variables
variable "ecs_cluster_name" {
description = "The name of the ECS cluster."
default = "vpn"
}
variable "ecs_service_name" {
description = "The name of the VPN service."
default = "vpn"
}
variable "ecs_volume_data" {
description = "The path of presented OpenVPN data on the host instance."
default = "/var/lib/docker-volumes/openvpn"
}
variable "ecs_volume_conf" {
description = "The path of presented OpenVPN data on the host instance."
default = "/var/lib/docker-volumes/openvpn-conf"
}
# ----------------------------------------------------------------
# OpenVPN Variables
variable "ovpn_country" {
description = "Country name for the CA."
default = "NZ"
}
variable "ovpn_province" {
description = "State or province name for the CA."
default = "Auckland"
}
variable "ovpn_city" {
description = "Locality name for the CA."
default = "Auckland"
}
variable "ovpn_company" {
description = "Organization name for the CA."
}
variable "ovpn_section" {
description = "Organizational unit name for the CA."
default = "VPN"
}
variable "ovpn_email" {
description = "Email address for the CA."
}
variable "ovpn_domain" {
description = "Domain name of the OpenVPN."
}
variable "ovpn_subnet" {
default = "10.8.0.0/24"
}
variable "ovpn_proto" {
default = "udp"
}
variable "ovpn_dev" {
default = "tun0"
}
variable "ovpn_clients" {
description = "List of client names to be created."
type = "list"
default = []
}