diff --git a/proxmox/terraform/production/common.tf b/proxmox/terraform/production/common.tf deleted file mode 100644 index e99f5f7..0000000 --- a/proxmox/terraform/production/common.tf +++ /dev/null @@ -1,12 +0,0 @@ -locals { - config = { - dns = var.dns - domain = "internal.softwareheritage.org" - puppet_environment = "production" - puppet_master = var.puppet_master - gateway_ip = "192.168.100.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 - } -} diff --git a/proxmox/terraform/production/production.tf b/proxmox/terraform/production/production.tf index ecb602d..bd23b54 100644 --- a/proxmox/terraform/production/production.tf +++ b/proxmox/terraform/production/production.tf @@ -1,20 +1,33 @@ +locals { + config = { + dns = var.dns + domain = "internal.softwareheritage.org" + puppet_environment = "production" + puppet_master = var.puppet_master + gateway_ip = "192.168.100.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 "kelvingrove" { source = "../modules/node" config = local.config hostname = "kelvingrove" description = "Keycloak server" hypervisor = "hypervisor3" vmid = 123 cores = "4" memory = "8192" numa = true balloon = 0 networks = [{ id = 0 ip = "192.168.100.106" gateway = local.config["gateway_ip"] macaddr = "72:55:5E:58:01:0B" bridge = "vmbr0" }] }