infra: introduce terraform/opentofu for proxmox management

- move ansible project within infra
- introduce terraform/opentofu for proxmox VM management
This commit is contained in:
2025-06-30 19:16:14 +03:00
parent a79de74a6a
commit 03c882f311
24 changed files with 882 additions and 0 deletions

View 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"]