From a32d33b23afdb61d4bc3d27dbdd813579f2f2ac5 Mon Sep 17 00:00:00 2001 From: Tine Date: Sat, 30 Nov 2024 21:35:13 +0100 Subject: [PATCH] feat: provision mustafar --- terraform/node.tf | 1 - terraform/terraform.tf | 6 ++++++ terraform/terraform.tfvars | 14 ++++++++++++++ terraform/variables.tf | 1 + 4 files changed, 21 insertions(+), 1 deletion(-) diff --git a/terraform/node.tf b/terraform/node.tf index a10af6e..9d860d6 100644 --- a/terraform/node.tf +++ b/terraform/node.tf @@ -3,7 +3,6 @@ locals { nodes = { for k, v in var.nodes : k => merge(v, { - id = 800 + index(keys(var.nodes), k) domain = local.domain meta = { name = v.host diff --git a/terraform/terraform.tf b/terraform/terraform.tf index 6a3121c..626cdaa 100644 --- a/terraform/terraform.tf +++ b/terraform/terraform.tf @@ -53,5 +53,11 @@ provider "proxmox" { address = "nevaroo.system.tjo.cloud" port = 22 } + + node { + name = "mustafar" + address = "mustafar.system.tjo.cloud" + port = 22 + } } } diff --git a/terraform/terraform.tfvars b/terraform/terraform.tfvars index a8f4c3f..244637d 100644 --- a/terraform/terraform.tfvars +++ b/terraform/terraform.tfvars @@ -1,5 +1,6 @@ nodes = { batuu = { + id = 800 host = "batuu" iso_storage = "local" boot_storage = "local-nvme" @@ -10,6 +11,7 @@ nodes = { ipv6_gateway = "fd74:6a6f:0:1000::1" } jakku = { + id = 801 host = "jakku" iso_storage = "local" boot_storage = "local-nvme" @@ -20,6 +22,7 @@ nodes = { ipv6_gateway = "fd74:6a6f:0:2000::1" } nevaroo = { + id = 802 host = "nevaroo" iso_storage = "local" boot_storage = "local" @@ -29,6 +32,17 @@ nodes = { ipv6_address = "fd74:6a6f:0:3010::1/64" ipv6_gateway = "fd74:6a6f:0:3000::1" } + mustafar = { + id = 803 + host = "mustafar" + iso_storage = "local" + boot_storage = "local" + + ipv4_address = "10.0.64.10/20" + ipv4_gateway = "10.0.64.1" + ipv6_address = "fd74:6a6f:0:4010::1/64" + ipv6_gateway = "fd74:6a6f:0:4000::1" + } } ssh_keys = [ diff --git a/terraform/variables.tf b/terraform/variables.tf index 175bf4c..d219c94 100644 --- a/terraform/variables.tf +++ b/terraform/variables.tf @@ -1,5 +1,6 @@ variable "nodes" { type = map(object({ + id = number host = string ipv4_address = string