Changeset View
Changeset View
Standalone View
Standalone View
proxmox/terraform/staging/staging.tf
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | resource "proxmox_vm_qemu" "gateway" { | ||||
ipconfig0 = "ip=192.168.100.125/24,gw=192.168.100.1" | ipconfig0 = "ip=192.168.100.125/24,gw=192.168.100.1" | ||||
# vms from the staging network will use this vm as gateway | # vms from the staging network will use this vm as gateway | ||||
ipconfig1 = "ip=${var.gateway_ip}/24" | ipconfig1 = "ip=${var.gateway_ip}/24" | ||||
disk { | disk { | ||||
id = 0 | id = 0 | ||||
type = "virtio" | type = "virtio" | ||||
storage = "proxmox" | storage = "proxmox" | ||||
storage_type = "ssd" | storage_type = "cephfs" | ||||
size = "20G" | size = "20G" | ||||
} | } | ||||
network { | network { | ||||
id = 0 | id = 0 | ||||
model = "virtio" | model = "virtio" | ||||
bridge = "vmbr0" | bridge = "vmbr0" | ||||
macaddr = "6E:ED:EF:EB:3C:AA" | macaddr = "6E:ED:EF:EB:3C:AA" | ||||
} | } | ||||
Show All 40 Lines | network = { | ||||
ip = "192.168.128.2" | ip = "192.168.128.2" | ||||
macaddr = "CA:73:7F:ED:F9:01" | macaddr = "CA:73:7F:ED:F9:01" | ||||
bridge = "vmbr443" | bridge = "vmbr443" | ||||
} | } | ||||
storages = [{ | storages = [{ | ||||
id = 0 | id = 0 | ||||
storage = "orsay-ssd-2018" | storage = "orsay-ssd-2018" | ||||
size = "32G" | size = "32G" | ||||
storage_type = "ssd" | |||||
}, { | }, { | ||||
id = 1 | id = 1 | ||||
storage = "orsay-ssd-2018" | storage = "orsay-ssd-2018" | ||||
size = "512G" | size = "512G" | ||||
storage_type = "ssd" | |||||
}] | }] | ||||
} | } | ||||
module "db0" { | module "db0" { | ||||
source = "../modules/node" | source = "../modules/node" | ||||
config = local.config | config = local.config | ||||
hypervisor = "orsay" | hypervisor = "orsay" | ||||
vmid = 115 | vmid = 115 | ||||
hostname = "db0" | hostname = "db0" | ||||
description = "Node to host storage/indexer/scheduler dbs" | description = "Node to host storage/indexer/scheduler dbs" | ||||
cores = "4" | cores = "4" | ||||
memory = "16384" | memory = "16384" | ||||
balloon = 1024 | balloon = 1024 | ||||
network = { | network = { | ||||
ip = "192.168.128.3" | ip = "192.168.128.3" | ||||
macaddr = "3A:65:31:7C:24:17" | macaddr = "3A:65:31:7C:24:17" | ||||
bridge = "vmbr443" | bridge = "vmbr443" | ||||
} | } | ||||
storages = [{ | storages = [{ | ||||
id = 0 | id = 0 | ||||
storage = "orsay-ssd-2018" | storage = "orsay-ssd-2018" | ||||
size = "400G" | size = "400G" | ||||
storage_type = "ssd" | |||||
}] | }] | ||||
} | } | ||||
output "db0_summary" { | output "db0_summary" { | ||||
value = module.db0.summary | value = module.db0.summary | ||||
} | } | ||||
▲ Show 20 Lines • Show All 175 Lines • Show Last 20 Lines |