From 757e5a2221951b8bbca8da5661db576f70f991ef Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Mon, 9 Jun 2025 10:30:42 +1000 Subject: [PATCH] chore: remove ausyd1nxvm1072 - ausyd1nxvm1072 has been replaced with ausyd1nxvm2062 --- config/nodes/ausyd1nxvm1072/config.yaml | 3 -- config/nodes/ausyd1nxvm1072/images.yaml | 8 --- config/nodes/ausyd1nxvm1072/networks.yaml | 8 --- config/nodes/ausyd1nxvm1072/profiles.yaml | 22 -------- .../nodes/ausyd1nxvm1072/storage_pools.yaml | 5 -- .../nodes/ausyd1nxvm1072/storage_volumes.yaml | 3 -- config/nodes/ausyd1nxvm1072/terragrunt.hcl | 50 ------------------- 7 files changed, 99 deletions(-) delete mode 100644 config/nodes/ausyd1nxvm1072/config.yaml delete mode 100644 config/nodes/ausyd1nxvm1072/images.yaml delete mode 100644 config/nodes/ausyd1nxvm1072/networks.yaml delete mode 100644 config/nodes/ausyd1nxvm1072/profiles.yaml delete mode 100644 config/nodes/ausyd1nxvm1072/storage_pools.yaml delete mode 100644 config/nodes/ausyd1nxvm1072/storage_volumes.yaml delete mode 100644 config/nodes/ausyd1nxvm1072/terragrunt.hcl diff --git a/config/nodes/ausyd1nxvm1072/config.yaml b/config/nodes/ausyd1nxvm1072/config.yaml deleted file mode 100644 index 879a0c0..0000000 --- a/config/nodes/ausyd1nxvm1072/config.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -node_addr: 198.18.13.82 -node_port: 8443 diff --git a/config/nodes/ausyd1nxvm1072/images.yaml b/config/nodes/ausyd1nxvm1072/images.yaml deleted file mode 100644 index cc91030..0000000 --- a/config/nodes/ausyd1nxvm1072/images.yaml +++ /dev/null @@ -1,8 +0,0 @@ -almalinux/8/cloud: - remote: images - aliases: - - almalinux8 -almalinux/9/cloud: - remote: images - aliases: - - almalinux9 diff --git a/config/nodes/ausyd1nxvm1072/networks.yaml b/config/nodes/ausyd1nxvm1072/networks.yaml deleted file mode 100644 index c40cadd..0000000 --- a/config/nodes/ausyd1nxvm1072/networks.yaml +++ /dev/null @@ -1,8 +0,0 @@ -brcom1: - type: bridge - config: - bridge.mtu: 1500 - ipv4.address: 10.255.255.1/24 - ipv4.nat: true - dns.mode: none - dns.domain: main.unkin.net diff --git a/config/nodes/ausyd1nxvm1072/profiles.yaml b/config/nodes/ausyd1nxvm1072/profiles.yaml deleted file mode 100644 index 21cbdbb..0000000 --- a/config/nodes/ausyd1nxvm1072/profiles.yaml +++ /dev/null @@ -1,22 +0,0 @@ -# build profile -build: - description: "profile to use when building images" - project: null - config: - boot.autostart: true - limits.cpu: 1 - limits.memory: 1024MB - limits.memory.enforce: hard - limits.memory.swap: true - devices: - - type: nic - name: eth0 - properties: - parent: brcom1 - nictype: bridged - - type: disk - name: root - properties: - pool: fastpool - size: 10GB - path: / diff --git a/config/nodes/ausyd1nxvm1072/storage_pools.yaml b/config/nodes/ausyd1nxvm1072/storage_pools.yaml deleted file mode 100644 index 3599001..0000000 --- a/config/nodes/ausyd1nxvm1072/storage_pools.yaml +++ /dev/null @@ -1,5 +0,0 @@ -fastpool: - driver: zfs - description: nvme backed zfs store - config: - source: fastpool/data/incus diff --git a/config/nodes/ausyd1nxvm1072/storage_volumes.yaml b/config/nodes/ausyd1nxvm1072/storage_volumes.yaml deleted file mode 100644 index 4b76778..0000000 --- a/config/nodes/ausyd1nxvm1072/storage_volumes.yaml +++ /dev/null @@ -1,3 +0,0 @@ -imagestore: - pool: fastpool - description: location to store images diff --git a/config/nodes/ausyd1nxvm1072/terragrunt.hcl b/config/nodes/ausyd1nxvm1072/terragrunt.hcl deleted file mode 100644 index 0a57118..0000000 --- a/config/nodes/ausyd1nxvm1072/terragrunt.hcl +++ /dev/null @@ -1,50 +0,0 @@ -locals { - config = yamldecode(file("${get_terragrunt_dir()}/config.yaml")) - local_images = yamldecode(file("${get_terragrunt_dir()}/images.yaml")) - local_networks = yamldecode(file("${get_terragrunt_dir()}/networks.yaml")) - local_profiles = yamldecode(file("${get_terragrunt_dir()}/profiles.yaml")) - local_storage_pools = yamldecode(file("${get_terragrunt_dir()}/storage_pools.yaml")) - local_storage_volumes = yamldecode(file("${get_terragrunt_dir()}/storage_volumes.yaml")) - node_name = basename(get_terragrunt_dir()) -} - -# on the image server we want to use localised settings mostly, not all the globals -# dont deep merge -include "root" { - path = find_in_parent_folders("root.hcl") -} - -terraform { - source = "${get_repo_root()}/modules/node" -} - -inputs = { - images = local.local_images - networks = local.local_networks - profiles = local.local_profiles - storage_pools = local.local_storage_pools - storage_volumes = local.local_storage_volumes - node_name = local.node_name - node_addr = local.config.node_addr - node_port = local.config.node_port -} - -generate "provider" { - path = "provider.tf" - if_exists = "overwrite_terragrunt" - contents = <<-EOF - provider "incus" { - generate_client_certificates = true - accept_remote_certificate = true - - remote { - name = "${basename(get_terragrunt_dir())}" - scheme = "https" - address = "${local.config.node_addr}" - port = "${local.config.node_port}" - token = "${get_env("INCUS_TOKEN_${upper(local.node_name)}")}" - default = true - } - } - EOF -}