From cf93d7f7a1d6cb0941785996a1002b31c5f0050f Mon Sep 17 00:00:00 2001
From: "Antoine R. Dumont (@ardumont)" <ardumont@softwareheritage.org>
Date: Tue, 6 Sep 2022 14:50:25 +0200
Subject: [PATCH] production: Provision new maven-exporter node

Related to T4330
---
 proxmox/terraform/production/production.tf | 32 +++++++++++++++++++++-
 1 file changed, 31 insertions(+), 1 deletion(-)

diff --git a/proxmox/terraform/production/production.tf b/proxmox/terraform/production/production.tf
index 33a1b95..bb4c187 100644
--- a/proxmox/terraform/production/production.tf
+++ b/proxmox/terraform/production/production.tf
@@ -1,4 +1,3 @@
-
 module "kelvingrove" {
   source = "../modules/node"
   config = local.config
@@ -169,3 +168,34 @@ module "scrubber1" {
 output "scrubber1_summary" {
   value = module.scrubber1.summary
 }
+
+module "maven-exporter" {
+  source      = "../modules/node"
+  template    = var.templates["stable-zfs"]
+  config      = local.config
+  hostname    = "maven-exporter"
+  description = "Maven index exporter to run containers and expose export.fld files"
+  hypervisor  = "pompidou"
+  sockets     = "1"
+  cores       = "4"
+  onboot      = true
+  memory      = "4096"
+  balloon     = "2048"
+
+  networks = [{
+    id      = 0
+    ip      = "192.168.100.10"
+    gateway = local.config["gateway_ip"]
+    bridge  = local.config["bridge"]
+    macaddr = "D2:7E:0B:35:89:FF"
+  }]
+
+  storages = [{
+    storage = "proxmox"
+    size    = "20G"
+    }, {
+    storage = "proxmox"
+    size    = "50G"
+    }
+  ]
+}
-- 
GitLab