-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
121 lines (108 loc) · 2.07 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
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
120
121
variable "proxmox" {}
variable "proxmox_default" {
type = object({
insecure = bool
debug = bool
use_bastion = bool
template_location = string
node_name = string
})
description = "Proxmox map"
default = {
insecure = false
debug = false
use_bastion = false
template_location = "/var/lib/vz/snippets"
node_name = "pmx"
}
}
variable "proxmox_secrets" {}
variable "proxmox_secrets_default" {
type = object({
url = string
user = string
pass = string
ssh_host = string
ssh_user = string
ssh_port = number
})
description = "Proxmox secrets map"
default = {
url = ""
user = ""
pass = ""
ssh_host = ""
ssh_user = ""
ssh_port = 22
}
}
variable "nodes" {
description = "Flexible user variable for nodes"
}
variable "nodes_default" {
type = object({
target_node = string
bridge = string
clone = string
agent = number
disk_gb = number
ram_mb = number
storage = string
onboot = bool
cores = number
macaddr = list(string)
roles = list(string)
})
default = {
target_node = "pmx2"
bridge = "vmbr1"
clone = "bionic"
agent = 0 #False
disk_gb = 85 #Must be >= clone
ram_mb = 2048
storage = "SSD1"
onboot = false
cores = 2
macaddr = [""]
roles = ["worker"]
}
description = "Map de valeurs par défaut pour les nodes"
}
variable "bastion" {}
variable "bastion_default" {
type = object({
ssh_private_key = string
ssh_public_key = string
host = string
user = string
port = number
})
default = {
ssh_private_key = "~/.ssh/id_rsa"
ssh_public_key = "~/.ssh/id_rsa.pub"
host = ""
user = ""
port = 22
}
description = "Default values for using a ssh bastion"
}
variable "rancher" {
type = map(string)
}
variable "rancher_bootstrap" {}
variable "cloudflare" {
}
variable "acme_email" {
type = string
}
variable "cert-manager" {
default = {
enabled = true
}
description = "Cert-Manager installation map"
}
variable "netdata" {
default = {
enabled = false
}
}