feat: provision mustafar
This commit is contained in:
parent
ce1583fde5
commit
a32d33b23a
4 changed files with 21 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -53,5 +53,11 @@ provider "proxmox" {
|
|||
address = "nevaroo.system.tjo.cloud"
|
||||
port = 22
|
||||
}
|
||||
|
||||
node {
|
||||
name = "mustafar"
|
||||
address = "mustafar.system.tjo.cloud"
|
||||
port = 22
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 = [
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
variable "nodes" {
|
||||
type = map(object({
|
||||
id = number
|
||||
host = string
|
||||
|
||||
ipv4_address = string
|
||||
|
|
Loading…
Reference in a new issue