renamed pve2 node to goose

This commit is contained in:
nick committed 2026-07-02 22:40:04 -07:00
1 parent d2bc9645d1
commit 8b8b6d1a3d
4 files changed
+17 -15

No files matched your search

+9 -7
View File
@@ -54,13 +54,15 @@ module "proxmox" {
} }
} }
module "pve2" {
module "goose" {
source = "./opentofu/modules/proxmox_node" source = "./opentofu/modules/proxmox_node"
node_name = var.hypervisors["pve2"].node_name node_name = var.hypervisors["goose"].node_name
storage = var.hypervisors["pve2"].storage storage = var.hypervisors["goose"].storage
lxc = try(var.nodes["pve2"].lxc, {}) lxc = try(var.nodes["goose"].lxc, {})
machines = try(var.nodes["pve2"].machines, {}) machines = try(var.nodes["goose"].machines, {})
search_domain = local.node_common.search_domain search_domain = local.node_common.search_domain
dns_nameservers = local.node_common.dns_nameservers dns_nameservers = local.node_common.dns_nameservers
ssh_key = local.node_common.ssh_key ssh_key = local.node_common.ssh_key
@@ -69,14 +71,14 @@ module "pve2" {
ssh_private_key_path = local.node_common.ssh_private_key_path ssh_private_key_path = local.node_common.ssh_private_key_path
providers = { providers = {
proxmox = proxmox.pve2 proxmox = proxmox.goose
} }
} }
locals { locals {
hv_hosts = { hv_hosts = {
proxmox = { lxc = module.proxmox.lxc_hosts, vm = module.proxmox.vm_hosts } proxmox = { lxc = module.proxmox.lxc_hosts, vm = module.proxmox.vm_hosts }
pve2 = { lxc = module.pve2.lxc_hosts, vm = module.pve2.vm_hosts } goose = { lxc = module.goose.lxc_hosts, vm = module.goose.vm_hosts }
} }
all_hosts = flatten([ all_hosts = flatten([
+3 -3
View File
@@ -74,9 +74,9 @@ provider "proxmox" {
} }
provider "proxmox" { provider "proxmox" {
alias = "pve2" alias = "goose"
pm_api_url = var.hypervisors["pve2"].api_url pm_api_url = var.hypervisors["goose"].api_url
pm_api_token_id = data.external.infisical.result["token_id"] pm_api_token_id = data.external.infisical.result["token_id"]
pm_api_token_secret = data.external.infisical.result["pve2_token_secret"] pm_api_token_secret = data.external.infisical.result["goose_token_secret"]
pm_tls_insecure = true pm_tls_insecure = true
} }
+1 -1
View File
@@ -3,7 +3,7 @@
{{- range $secret := $secrets }} {{- range $secret := $secrets }}
{{- if eq $secret.Key "HV_USER" }}"token_id": "{{$secret.Value}}",{{ end }} {{- if eq $secret.Key "HV_USER" }}"token_id": "{{$secret.Value}}",{{ end }}
{{- if eq $secret.Key "PROXMOX_TOKEN_SECRET" }}"hv2_token_secret": "{{$secret.Value}}",{{ end }} {{- if eq $secret.Key "PROXMOX_TOKEN_SECRET" }}"hv2_token_secret": "{{$secret.Value}}",{{ end }}
{{- if eq $secret.Key "PVE2_TOKEN_SECRET" }}"pve2_token_secret": "{{$secret.Value}}",{{ end }} {{- if eq $secret.Key "GOOSE_TOKEN_SECRET" }}"goose_token_secret": "{{$secret.Value}}",{{ end }}
{{- if eq $secret.Key "LXC_PASSWORD" }}"lxc_password": "{{$secret.Value}}",{{ end }} {{- if eq $secret.Key "LXC_PASSWORD" }}"lxc_password": "{{$secret.Value}}",{{ end }}
{{- if eq $secret.Key "SSH_PRIVATE_KEY" }}"ssh_private_key_b64": "{{$secret.Value}}",{{ end }} {{- if eq $secret.Key "SSH_PRIVATE_KEY" }}"ssh_private_key_b64": "{{$secret.Value}}",{{ end }}
{{- if eq $secret.Key "SSH_PUBLIC_KEY" }}"ssh_public_key": "{{$secret.Value}}",{{ end }} {{- if eq $secret.Key "SSH_PUBLIC_KEY" }}"ssh_public_key": "{{$secret.Value}}",{{ end }}
+4 -4
View File
@@ -6,9 +6,9 @@ hypervisors = {
node_name = "pve" node_name = "pve"
storage = "local-lvm" storage = "local-lvm"
} }
pve2 = { goose = {
api_url = "https://192.168.0.241:8006/api2/json" api_url = "https://192.168.0.241:8006/api2/json"
node_name = "pve" node_name = "goose"
storage = "local-lvm" storage = "local-lvm"
} }
} }
@@ -43,7 +43,7 @@ dns_records = [
{ zone = "oswaldtheotter.lan", name = "omada", type = "A", value = "192.168.0.110" }, { zone = "oswaldtheotter.lan", name = "omada", type = "A", value = "192.168.0.110" },
{ zone = "oswaldtheotter.lan", name = "portanas", type = "A", value = "192.168.0.4" }, { zone = "oswaldtheotter.lan", name = "portanas", type = "A", value = "192.168.0.4" },
{ zone = "oswaldtheotter.lan", name = "proxmox", type = "A", value = "192.168.0.240" }, { zone = "oswaldtheotter.lan", name = "proxmox", type = "A", value = "192.168.0.240" },
{ zone = "oswaldtheotter.lan", name = "pve", type = "A", value = "192.168.0.241" }, { zone = "oswaldtheotter.lan", name = "goose", type = "A", value = "192.168.0.241" },
{ zone = "oswaldtheotter.lan", name = "nas", type = "CNAME", value = "portanas.oswaldtheotter.lan" }, { zone = "oswaldtheotter.lan", name = "nas", type = "CNAME", value = "portanas.oswaldtheotter.lan" },
{ zone = "oswaldtheotter.lan", name = "s3", type = "CNAME", value="portanas.oswaldtheotter.lan"}, { zone = "oswaldtheotter.lan", name = "s3", type = "CNAME", value="portanas.oswaldtheotter.lan"},
{ zone = "oswaldtheotter.lan", name = "hass", type = "A", value="192.168.0.70"}, { zone = "oswaldtheotter.lan", name = "hass", type = "A", value="192.168.0.70"},
@@ -159,7 +159,7 @@ nodes = {
machines = { machines = {
} }
} }
pve2 = { goose = {
lxc = { lxc = {
"dev" = { "dev" = {
hostname = "dev" hostname = "dev"