-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
54 lines (47 loc) · 1.48 KB
/
variables.tf
File metadata and controls
54 lines (47 loc) · 1.48 KB
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
variable "additional_volume_size" {
type = number
description = "Volume size of the additional created disk in GBs"
default = 5
}
variable "additional_volume_type" {
type = string
description = "Volume type of the additional created disk: encrypted, unencrypted"
default = "unencrypted"
validation {
condition = !contains(["encrypted", "unencryped"], var.additional_volume_type)
error_message = "Only encrypted or unencrypted are valid options for volume_type"
}
}
variable "boot_volume_size" {
type = number
description = "Volume size of the additional created disk in GBs"
default = 20
}
variable "boot_volume_type" {
type = string
description = "Volume type of the additional created disk: encrypted, unencrypted"
default = "unencrypted"
validation {
condition = !contains(["encrypted", "unencryped"], var.boot_volume_type)
error_message = "Only encrypted or unencrypted are valid options for volume_type"
}
}
variable "vm_flavor" {
type = string
description = "The openstack flavor of the VM"
default = "cn1.xsmall"
}
variable "total_servers" {
type = number
description = "Total number of plesk servers to be created"
default = 1
}
variable "default_subnet" {
type = string
description = "The subnet being used in the created network"
default = "192.168.42.0/24"
}
variable "keypair_name" {
type = string
description = "The SSH keypair name"
}