-
Notifications
You must be signed in to change notification settings - Fork 0
/
vars.tf
103 lines (86 loc) · 2.2 KB
/
vars.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
variable "ibmcloud_api_key" {
type = string
description = "IBM Cloud API key"
}
variable "ssh_public_key" {
default = ""
description = "Public ssh ID name. This needs to be pre-created."
}
variable "region" {
type = string
description = "IBM Cloud region"
default = "us-east"
}
variable "zone_region" {
type = string
description = "IBM Cloud region"
default = "us-east-1"
}
variable "instance_name" {
type = string
description = "Name of the OpenVPN instance"
default = "openvpn-as-server"
}
variable "instance_profile" {
default = "cx2-2x4"
description = "VM size and family"
}
variable "image_name" {
type = string
default = "ibm-ubuntu-24-04-6-minimal-amd64-1"
description = "Image name for the Linux server"
}
// VPC variables
variable "vpc_name" {
type = string
description = "Name of the VPC"
default = "openvpn-vpc"
}
variable "vpc_create" {
type = bool
description = "Set to true to create a new VPC, false to use an existing VPC"
default = false
}
variable "vpc_existing_name" {
type = string
description = "Name of the existing VPC to use when vpc_create is false"
default = ""
}
variable "vpc_subnet_name" {
type = string
description = "Name of the Subnet"
default = "openvpn-subnet"
}
variable "vpc_cidr_block" {
type = string
description = "CIDR block for the subnet"
}
variable "vpc_public_gateway_name" {
type = string
description = "Name of the public gateway"
default = "openvpn-pgw"
}
variable "vpc_security_group_name" {
type = string
description = "Name of the security group"
default = "openvpn-sg"
}
// DNS variables
variable "dns_create" {
type = bool
description = "Create DNS entries (true/false)"
default = false
}
variable "dns_domain_name" {
type = string
description = "Name of the DNS domain (example.com)"
}
variable "dns_entry_name" {
type = string
description = "DNS entry name (www)"
}
variable "dns_responsible_person" {
type = string
description = "Email address of the responsible person for the DNS entry"
default = "[email protected]"
}