feat: provision mustafar

This commit is contained in:
Tine 2024-11-30 21:35:13 +01:00
parent ce1583fde5
commit a32d33b23a
Signed by: mentos1386
SSH key fingerprint: SHA256:MNtTsLbihYaWF8j1fkOHfkKNlnN1JQfxEU/rBU8nCGw
4 changed files with 21 additions and 1 deletions

View file

@ -3,7 +3,6 @@ locals {
nodes = { nodes = {
for k, v in var.nodes : k => merge(v, { for k, v in var.nodes : k => merge(v, {
id = 800 + index(keys(var.nodes), k)
domain = local.domain domain = local.domain
meta = { meta = {
name = v.host name = v.host

View file

@ -53,5 +53,11 @@ provider "proxmox" {
address = "nevaroo.system.tjo.cloud" address = "nevaroo.system.tjo.cloud"
port = 22 port = 22
} }
node {
name = "mustafar"
address = "mustafar.system.tjo.cloud"
port = 22
}
} }
} }

View file

@ -1,5 +1,6 @@
nodes = { nodes = {
batuu = { batuu = {
id = 800
host = "batuu" host = "batuu"
iso_storage = "local" iso_storage = "local"
boot_storage = "local-nvme" boot_storage = "local-nvme"
@ -10,6 +11,7 @@ nodes = {
ipv6_gateway = "fd74:6a6f:0:1000::1" ipv6_gateway = "fd74:6a6f:0:1000::1"
} }
jakku = { jakku = {
id = 801
host = "jakku" host = "jakku"
iso_storage = "local" iso_storage = "local"
boot_storage = "local-nvme" boot_storage = "local-nvme"
@ -20,6 +22,7 @@ nodes = {
ipv6_gateway = "fd74:6a6f:0:2000::1" ipv6_gateway = "fd74:6a6f:0:2000::1"
} }
nevaroo = { nevaroo = {
id = 802
host = "nevaroo" host = "nevaroo"
iso_storage = "local" iso_storage = "local"
boot_storage = "local" boot_storage = "local"
@ -29,6 +32,17 @@ nodes = {
ipv6_address = "fd74:6a6f:0:3010::1/64" ipv6_address = "fd74:6a6f:0:3010::1/64"
ipv6_gateway = "fd74:6a6f:0:3000::1" 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 = [ ssh_keys = [

View file

@ -1,5 +1,6 @@
variable "nodes" { variable "nodes" {
type = map(object({ type = map(object({
id = number
host = string host = string
ipv4_address = string ipv4_address = string