Changeset View
Changeset View
Standalone View
Standalone View
proxmox/terraform/admin/admin.tf
- This file was added.
locals { | |||||
config = { | |||||
dns = var.dns | |||||
domain = "internal.admin.swh.network" | |||||
puppet_environment = "production" | |||||
facter_deployment = "production" | |||||
facter_subnet = "sesi_rocquencourt_admin" | |||||
puppet_master = var.puppet_master | |||||
gateway_ip = "192.168.50.1" | |||||
user_admin = var.user_admin | |||||
user_admin_ssh_public_key = var.user_admin_ssh_public_key | |||||
user_admin_ssh_private_key_path = var.user_admin_ssh_private_key_path | |||||
} | |||||
} | |||||
module "bardo" { | |||||
source = "../modules/node" | |||||
config = local.config | |||||
hostname = "bardo" | |||||
description = "Hedgedoc instance" | |||||
hypervisor = "branly" | |||||
vmid = 124 | |||||
cores = "2" | |||||
memory = "8192" | |||||
balloon = 1024 | |||||
networks = [{ | |||||
id = 0 | |||||
ip = "192.168.50.10" | |||||
gateway = local.config["gateway_ip"] | |||||
macaddr = "7A:CE:A2:72:FA:E8" | |||||
bridge = "vmbr442" | |||||
}] | |||||
} |