chore: run tofu fmt

This commit is contained in:
2026-02-01 23:04:02 +01:00
parent 4133eafc4e
commit b6f1e80c2a
2 changed files with 33 additions and 33 deletions

View File

@@ -8,7 +8,7 @@ resource "proxmox_cloud_init_disk" "ci" {
name = each.key name = each.key
pve_node = each.value.target_node pve_node = each.value.target_node
storage = "local" # Cloud-init disks must be on storage that supports ISO/snippets storage = "local" # Cloud-init disks must be on storage that supports ISO/snippets
# User data includes SSH keys and optionally NIXOS_FLAKE_BRANCH # User data includes SSH keys and optionally NIXOS_FLAKE_BRANCH
user_data = <<-EOT user_data = <<-EOT
@@ -25,34 +25,34 @@ resource "proxmox_cloud_init_disk" "ci" {
: ""} : ""}
EOT EOT
# Network configuration - static IP or DHCP # Network configuration - static IP or DHCP
network_config = each.value.ip != null ? yamlencode({ network_config = each.value.ip != null ? yamlencode({
version = 1 version = 1
config = [{ config = [{
type = "physical" type = "physical"
name = "ens18" name = "ens18"
subnets = [{ subnets = [{
type = "static" type = "static"
address = each.value.ip address = each.value.ip
gateway = each.value.gateway gateway = each.value.gateway
dns_nameservers = split(" ", each.value.nameservers) dns_nameservers = split(" ", each.value.nameservers)
dns_search = [each.value.search_domain] dns_search = [each.value.search_domain]
}]
}] }]
}) : yamlencode({ }]
version = 1 }) : yamlencode({
config = [{ version = 1
type = "physical" config = [{
name = "ens18" type = "physical"
subnets = [{ name = "ens18"
type = "dhcp" subnets = [{
}] type = "dhcp"
}] }]
}) }]
})
# Instance metadata # Instance metadata
meta_data = yamlencode({ meta_data = yamlencode({
instance_id = sha1(each.key) instance_id = sha1(each.key)
local-hostname = each.key local-hostname = each.key
}) })
} }

View File

@@ -39,11 +39,11 @@ locals {
flake_branch = "pipeline-testing-improvements" flake_branch = "pipeline-testing-improvements"
} }
"vault01" = { "vault01" = {
ip = "10.69.13.19/24" ip = "10.69.13.19/24"
cpu_cores = 2 cpu_cores = 2
memory = 2048 memory = 2048
disk_size = "20G" disk_size = "20G"
flake_branch = "vault-setup" # Bootstrap from this branch instead of master flake_branch = "vault-setup" # Bootstrap from this branch instead of master
} }
} }