38 lines
1.0 KiB
HCL
38 lines
1.0 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
|
|
|
|
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
|
|
}
|