infra: introduce terraform/opentofu for proxmox management
- move ansible project within infra - introduce terraform/opentofu for proxmox VM management
This commit is contained in:
52
infra/terraform/proxmox/terraform.tfvars
Normal file
52
infra/terraform/proxmox/terraform.tfvars
Normal file
@ -0,0 +1,52 @@
|
||||
# Proxmox configuration =
|
||||
pm_ssh_public_key_path = "/home/taqi/.ssh/homeserver.pub"
|
||||
pm_ssh_private_key_path = "/home/taqi/.ssh/homeserver"
|
||||
|
||||
vms = [
|
||||
{
|
||||
name = "vm6"
|
||||
node_name = "homeserver1"
|
||||
vm_id = 105
|
||||
ip_address = "192.168.1.151/24"
|
||||
gateway = "192.168.1.1"
|
||||
dns_servers = ["192.168.1.145", "1.1.1.1"]
|
||||
cores = 2
|
||||
memory = 2048
|
||||
disk_size = 20
|
||||
},
|
||||
{
|
||||
name = "vm7"
|
||||
node_name = "homeserver1"
|
||||
vm_id = 106
|
||||
ip_address = "192.168.1.152/24"
|
||||
gateway = "192.168.1.1"
|
||||
dns_servers = ["192.168.1.145", "1.1.1.1"]
|
||||
cores = 2
|
||||
memory = 2048
|
||||
disk_size = 20
|
||||
},
|
||||
{
|
||||
name = "vm8"
|
||||
node_name = "homeserver2"
|
||||
vm_id = 205
|
||||
ip_address = "192.168.1.161/24"
|
||||
gateway = "192.168.1.1"
|
||||
dns_servers = ["192.168.1.145", "1.1.1.1"]
|
||||
cores = 2
|
||||
memory = 2048
|
||||
disk_size = 20
|
||||
},
|
||||
{
|
||||
name = "vm9"
|
||||
node_name = "homeserver2"
|
||||
vm_id = 206
|
||||
ip_address = "192.168.1.162/24"
|
||||
gateway = "192.168.1.1"
|
||||
dns_servers = ["192.168.1.145", "1.1.1.1"]
|
||||
cores = 2
|
||||
memory = 2048
|
||||
disk_size = 20
|
||||
}
|
||||
]
|
||||
|
||||
nodes = ["homeserver1", "homeserver2"]
|
||||
Reference in New Issue
Block a user