-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvars.tf
102 lines (82 loc) · 1.47 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
variable project_id {
type = string
}
variable zone {
type = string
}
variable region {
type = string
}
variable machine_type {
type = string
default = "custom-1-2048"
}
variable boot_disk_images {
type = list(string)
default = ["ubuntu-os-cloud/ubuntu-2004-lts"]
validation {
condition = alltrue([
for entry in var.boot_disk_images : contains(["ubuntu-os-cloud/ubuntu-2004-lts", "debian-cloud/debian-10", "centos-cloud/centos-stream-8"], entry)
]) && (length (var.boot_disk_images) != 0)
error_message = "Three types of images supported: ubuntu-os-cloud/ubuntu-2004-lts, debian-cloud/debian-10, centos-cloud/centos-stream-8."
}
}
variable public_key_path {
type = string
}
variable private_key_path {
type = string
}
variable remote_user {
type = string
}
variable remote_dir {
type = string
default = "/tmp"
}
variable zsh {
type = bool
default = true
}
variable terraform {
type = bool
default = true
}
variable terraform_version {
type = string
default = "1.0.2"
}
variable ansible {
type = bool
default = true
}
variable kubectl {
type = bool
default = true
}
variable jq {
type = bool
default = true
}
variable helm {
type = bool
default = true
}
variable sops {
type = bool
default = true
}
variable sops_version {
type = string
default = "3.7.1"
}
variable k9s {
type = bool
default = true
}
variable "network_selflink" {
type = string
}
variable "subnet_selflink" {
type = string
}