-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvars.tf
119 lines (99 loc) · 2.41 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
variable "vm_name" {
type = string
description = "Name of VM to create"
}
variable "os_region" {
type = string
description = "Region where network will be created"
}
variable "os_zone" {
type = string
description = "OS zone to be used"
}
variable "server_root_disk_gb" {
type = list(number)
default = [40]
description = "List of disks"
}
variable "server_volume_type" {
type = list(string)
default = ["fast"]
description = "List of disk types"
}
variable "image_name" {
type = list(string)
default = ["Ubuntu 20.04 LTS 64-bit"]
}
variable "vm_local_disk_gb" {
type = string
description = "Flavor's local disk size"
default = "0"
}
variable "vm_vcpus" {
type = number
description = "CPU in VMs flavor"
default = 2
}
variable "vm_ram_mb" {
type = number
description = "RAM in VMs flavor"
default = 4096
}
variable "router_external_net_name" {
type = string
default = "external-network"
description = "Name of external network to be used"
}
variable "dns_nameservers" {
description = "DNS servers to be used, selectel dns is default"
type = list(string)
default = [
"188.93.16.19",
"188.93.17.19",
]
}
variable "subnet_cidr" {
description = "Subnet CIDR to be created"
type = string
default = "192.168.0.0/24"
}
variable "router_name" {
description = "Router name to be created"
type = string
default = "router_1"
}
variable "network_name" {
description = "Network name to be created"
type = string
default = "network_1"
}
variable "local_network_1_name" {
description = "Local network name to be created"
type = string
default = "local_network_1"
}
variable "local_network_2_name" {
description = "Local network name to be created"
type = string
default = "local_network_2"
}
variable "local_network_1_subnet_cidr" {
description = "Subnet CIDR to be created"
type = string
default = "192.168.1.0/24"
}
variable "local_network_2_subnet_cidr" {
description = "Subnet CIDR to be created"
type = string
default = "192.168.2.0/24"
}
variable "enable_dhcp" {
description = "DHCP enable flag"
type = bool
default = false
}
variable "no_gateway" {
description = "Sets whether a network should have a gateway"
type = string
default = false
}