-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
54 lines (50 loc) · 1.47 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
variable "vms" {
type = list(object({
name = string
target_node = string
storage = string
storage_size = number
full_clone = bool
template_name = string
network_bridge = string
memory = number
cores = number
tags = string
ip = optional(string, "dhcp")
vmid = optional(number, null)
gw = optional(string, null)
}))
default = [
{
name = "vm"
target_node = "proxmox"
storage = "Kingstone-data"
storage_size = 32
full_clone = true
template_name = "ubuntu-server-beta"
network_bridge = "vmbr0"
memory = 2048
cores = 2
tags = "tofu"
}
]
}
variable "proxmox_host" {
description = "Value for proxmox cluster/server"
type = string
default = "https://192.168.0.131:8006/api2/json"
}
variable "proxmox_token_id" {
description = "Proxmox Token user@pam!token_id"
type = string
default = "terraform-prov@pve!terraform"
}
variable "proxmox_token_secret" {
description = "Proxmox token secret"
type = string
}
variable "environment" {
description = "on which enviroment the project will be running"
type = string
default = "dev"
}