-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
96 lines (79 loc) · 1.82 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
variable "pm_api_url" {
description = "Proxmox API URL"
}
variable "pm_api_token_id" {
description = "Proxmox Token ID"
}
variable "pm_api_token_secret" {
description = "Proxmox Token Secret"
}
variable "pm_user" {
description = "Proxmox username"
}
variable "pm_password" {
description = "Proxmox password"
sensitive = true
}
variable "pm_tls_insecure" {
description = "TLS insecure setting"
type = bool
default = true
}
variable "proxmox_node" {
description = "Proxmox node to deploy the VMs"
}
variable "vms" {
description = "Map of VM configurations"
type = map(object({
name = string
hostname = string
cores = number
sockets = number
memory = number
disk_size = string
mac_address0 = string
mac_address1 = string
ip_address0 = string
netmask0 = string
gateway0 = string
ip_address1 = string
netmask1 = string
gateway1 = string
}))
}
variable "cpu_type" {
description = "Type of CPU"
default = "host"
}
variable "storage_pool" {
description = "Storage pool for the VM disks"
}
variable "qcow2_image_path" {
description = "Path to the qcow2 image on the Proxmox node"
}
variable "bridge0" {
description = "Bridge for the first network interface"
default = "vmbr0"
}
variable "bridge1" {
description = "Bridge for the second network interface"
default = "vmbr1"
}
variable "ciuser" {
description = "Cloud-init username"
default = "ubuntu"
}
variable "cipassword" {
description = "Cloud-init user password"
sensitive = true
}
variable "ssh_key_file" {
description = "Path to the SSH public key file"
default = "~/.ssh/id_rsa.pub"
}
variable "nameserver" {
description = "DNS nameserver"
}
variable "searchdomain" {
description = "DNS search domain"
}