-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvariables.tf
61 lines (52 loc) · 1.34 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
variable "node_count" {
type = string
default = "1"
}
variable "node_name" {
type = string
default = "cloud-init"
}
variable "server_image" {
type = string
default = "ubuntu_focal"
validation {
condition = can(regex("^(debian_|ubuntu_).*$", var.server_image))
error_message = "The server_image value must start with ubuntu_ or debian_ (ubuntu_focal, debian_buster, ...)."
}
}
variable "server_type" {
type = string
default = "DEV1-S"
validation {
condition = can(regex("^(DEV1-(S|M|L|XL))|(GP1-(XS|S|M|L|XL))$", var.server_type))
error_message = "The server_type value must be a valid Scaleway instance type (DEV1-S, DEV1-M, DEV1-L, DEV1-XL, GP1-XS, GP1-S, GP1-M, GP1-L, GP1-XL)."
}
}
variable "ssh_key_file" {
type = string
}
variable "username" {
type = string
default = "user"
}
# optional features
variable "feature_omz" {
type = bool
description = "Whether to install Oh My ZSH or not"
default = false
}
variable "feature_docker" {
type = bool
description = "Whether to install Docker or not"
default = false
}
variable "feature_nvm" {
type = bool
description = "Whether to install NVM or not"
default = false
}
variable "feature_sdkman" {
type = bool
description = "Whether to install SDKMAN! or not"
default = false
}