69 lines
1.9 KiB
HCL
69 lines
1.9 KiB
HCL
# Management (1000-1999)
|
|
#
|
|
# Core infrastructure services that other VMs depend on.
|
|
# Lighthouse and DNS should be provisioned first.
|
|
#
|
|
# VMs:
|
|
# 1000 lighthouse 192.168.100.10 - Nebula lighthouse/relay
|
|
# 1001 dns 192.168.100.11 - Internal DNS server
|
|
# 1002 caddy 192.168.100.12 - Reverse proxy
|
|
# 1003 dc01 192.168.100.13 - AD domain controller (manual)
|
|
# 1005 ca01 192.168.100.15 - AD Certificate Authority
|
|
# 1006 rds01 192.168.100.16 - Remote Desktop Services + File Server
|
|
|
|
module "dns" {
|
|
source = "./modules/vm"
|
|
name = "dns"
|
|
vmid = 1001
|
|
node_name = var.proxmox_node
|
|
bridge_ip = "192.168.100.11"
|
|
gateway = var.gateway
|
|
datastore_id = var.datastore_id
|
|
clone_vmid = var.template_vmid
|
|
username = var.username
|
|
password = var.password
|
|
ssh_key_path = var.ssh_key_path
|
|
}
|
|
|
|
module "caddy" {
|
|
source = "./modules/vm"
|
|
name = "caddy"
|
|
vmid = 1002
|
|
node_name = var.proxmox_node
|
|
bridge_ip = "192.168.100.12"
|
|
gateway = var.gateway
|
|
datastore_id = var.datastore_id
|
|
clone_vmid = var.template_vmid
|
|
username = var.username
|
|
password = var.password
|
|
ssh_key_path = var.ssh_key_path
|
|
}
|
|
|
|
module "ca01" {
|
|
source = "./modules/vm"
|
|
name = "ca01"
|
|
vmid = 1005
|
|
node_name = var.proxmox_node
|
|
bridge_ip = "192.168.100.15"
|
|
os_type = "windows"
|
|
datastore_id = var.datastore_id
|
|
clone_vmid = var.windows_template_vmid
|
|
cores = 2
|
|
memory = 4096
|
|
disk_size = 60
|
|
}
|
|
|
|
module "rds01" {
|
|
source = "./modules/vm"
|
|
name = "rds01"
|
|
vmid = 1006
|
|
node_name = var.proxmox_node
|
|
bridge_ip = "192.168.100.16"
|
|
os_type = "windows"
|
|
datastore_id = var.datastore_id
|
|
clone_vmid = var.windows_template_vmid
|
|
cores = 4
|
|
memory = 8192
|
|
disk_size = 100
|
|
}
|