From 5befbcd14e90f9537503bde88887beabb3548ce6 Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Fri, 8 Aug 2025 23:15:50 +1000 Subject: [PATCH] feat: add victorialogs systems - 5 vlstorage - 3 vlselect - 3 vlinsert - 2 vlagent --- config/instances/ausyd1nxvm2102/config.yaml | 13 +++++ .../instances/ausyd1nxvm2102/terragrunt.hcl | 52 +++++++++++++++++++ config/instances/ausyd1nxvm2103/config.yaml | 13 +++++ .../instances/ausyd1nxvm2103/terragrunt.hcl | 52 +++++++++++++++++++ config/instances/ausyd1nxvm2104/config.yaml | 13 +++++ .../instances/ausyd1nxvm2104/terragrunt.hcl | 52 +++++++++++++++++++ config/instances/ausyd1nxvm2105/config.yaml | 7 +++ .../instances/ausyd1nxvm2105/terragrunt.hcl | 52 +++++++++++++++++++ config/instances/ausyd1nxvm2106/config.yaml | 7 +++ .../instances/ausyd1nxvm2106/terragrunt.hcl | 52 +++++++++++++++++++ config/instances/ausyd1nxvm2107/config.yaml | 7 +++ .../instances/ausyd1nxvm2107/terragrunt.hcl | 52 +++++++++++++++++++ config/instances/ausyd1nxvm2108/config.yaml | 13 +++++ .../instances/ausyd1nxvm2108/terragrunt.hcl | 52 +++++++++++++++++++ config/instances/ausyd1nxvm2109/config.yaml | 13 +++++ .../instances/ausyd1nxvm2109/terragrunt.hcl | 52 +++++++++++++++++++ config/instances/ausyd1nxvm2110/config.yaml | 13 +++++ .../instances/ausyd1nxvm2110/terragrunt.hcl | 52 +++++++++++++++++++ config/instances/ausyd1nxvm2111/config.yaml | 13 +++++ .../instances/ausyd1nxvm2111/terragrunt.hcl | 52 +++++++++++++++++++ config/instances/ausyd1nxvm2112/config.yaml | 13 +++++ .../instances/ausyd1nxvm2112/terragrunt.hcl | 52 +++++++++++++++++++ config/instances/ausyd1nxvm2113/config.yaml | 13 +++++ .../instances/ausyd1nxvm2113/terragrunt.hcl | 52 +++++++++++++++++++ config/instances/ausyd1nxvm2114/config.yaml | 13 +++++ .../instances/ausyd1nxvm2114/terragrunt.hcl | 52 +++++++++++++++++++ 26 files changed, 827 insertions(+) create mode 100644 config/instances/ausyd1nxvm2102/config.yaml create mode 100644 config/instances/ausyd1nxvm2102/terragrunt.hcl create mode 100644 config/instances/ausyd1nxvm2103/config.yaml create mode 100644 config/instances/ausyd1nxvm2103/terragrunt.hcl create mode 100644 config/instances/ausyd1nxvm2104/config.yaml create mode 100644 config/instances/ausyd1nxvm2104/terragrunt.hcl create mode 100644 config/instances/ausyd1nxvm2105/config.yaml create mode 100644 config/instances/ausyd1nxvm2105/terragrunt.hcl create mode 100644 config/instances/ausyd1nxvm2106/config.yaml create mode 100644 config/instances/ausyd1nxvm2106/terragrunt.hcl create mode 100644 config/instances/ausyd1nxvm2107/config.yaml create mode 100644 config/instances/ausyd1nxvm2107/terragrunt.hcl create mode 100644 config/instances/ausyd1nxvm2108/config.yaml create mode 100644 config/instances/ausyd1nxvm2108/terragrunt.hcl create mode 100644 config/instances/ausyd1nxvm2109/config.yaml create mode 100644 config/instances/ausyd1nxvm2109/terragrunt.hcl create mode 100644 config/instances/ausyd1nxvm2110/config.yaml create mode 100644 config/instances/ausyd1nxvm2110/terragrunt.hcl create mode 100644 config/instances/ausyd1nxvm2111/config.yaml create mode 100644 config/instances/ausyd1nxvm2111/terragrunt.hcl create mode 100644 config/instances/ausyd1nxvm2112/config.yaml create mode 100644 config/instances/ausyd1nxvm2112/terragrunt.hcl create mode 100644 config/instances/ausyd1nxvm2113/config.yaml create mode 100644 config/instances/ausyd1nxvm2113/terragrunt.hcl create mode 100644 config/instances/ausyd1nxvm2114/config.yaml create mode 100644 config/instances/ausyd1nxvm2114/terragrunt.hcl diff --git a/config/instances/ausyd1nxvm2102/config.yaml b/config/instances/ausyd1nxvm2102/config.yaml new file mode 100644 index 0000000..07ee41a --- /dev/null +++ b/config/instances/ausyd1nxvm2102/config.yaml @@ -0,0 +1,13 @@ +description: VictoraLogs-Insert +cobbler_mgmt_classes: + - roles::infra::logs::vlinsert +profiles: + - disk10 + - net_com1_eth0 + - 2core4096 +storage_volumes: + data: + pool: fastpool + path: /data + config: + size: 50GB diff --git a/config/instances/ausyd1nxvm2102/terragrunt.hcl b/config/instances/ausyd1nxvm2102/terragrunt.hcl new file mode 100644 index 0000000..de7d211 --- /dev/null +++ b/config/instances/ausyd1nxvm2102/terragrunt.hcl @@ -0,0 +1,52 @@ +locals { + node_name = "prodnxsr0010" + config_common = yamldecode(file("${get_terragrunt_dir()}/../config_common.yaml")) + config_specific = yamldecode(file("${get_terragrunt_dir()}/config.yaml")) + config = merge(local.config_common, local.config_specific) + instance_name = basename(get_terragrunt_dir()) +} + +inputs = merge( + { + name = local.instance_name + }, + local.config +) + +include "root" { + path = find_in_parent_folders("root.hcl") +} + +include "instances" { + path = find_in_parent_folders("instances.hcl") + expose = true + merge_strategy = "deep" +} + +dependencies { + paths = ["${get_repo_root()}/config/nodes/${local.node_name}"] +} + +terraform { + source = "${get_repo_root()}/modules/instance" +} + +generate "incus" { + path = "incus.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 = "${yamldecode(file("${get_repo_root()}/config/nodes/${local.node_name}/config.yaml")).node_addr}" + port = "${yamldecode(file("${get_repo_root()}/config/nodes/${local.node_name}/config.yaml")).node_port}" + token = "${get_env("INCUS_TOKEN_${upper(local.node_name)}")}" + default = true + } + } + EOF +} diff --git a/config/instances/ausyd1nxvm2103/config.yaml b/config/instances/ausyd1nxvm2103/config.yaml new file mode 100644 index 0000000..2766791 --- /dev/null +++ b/config/instances/ausyd1nxvm2103/config.yaml @@ -0,0 +1,13 @@ +description: VictoriaLogs-Insert +cobbler_mgmt_classes: + - roles::infra::logs::vlinsert +profiles: + - disk10 + - net_com1_eth0 + - 2core4096 +storage_volumes: + data: + pool: fastpool + path: /data + config: + size: 50GB diff --git a/config/instances/ausyd1nxvm2103/terragrunt.hcl b/config/instances/ausyd1nxvm2103/terragrunt.hcl new file mode 100644 index 0000000..98fe447 --- /dev/null +++ b/config/instances/ausyd1nxvm2103/terragrunt.hcl @@ -0,0 +1,52 @@ +locals { + node_name = "prodnxsr0011" + config_common = yamldecode(file("${get_terragrunt_dir()}/../config_common.yaml")) + config_specific = yamldecode(file("${get_terragrunt_dir()}/config.yaml")) + config = merge(local.config_common, local.config_specific) + instance_name = basename(get_terragrunt_dir()) +} + +inputs = merge( + { + name = local.instance_name + }, + local.config +) + +include "root" { + path = find_in_parent_folders("root.hcl") +} + +include "instances" { + path = find_in_parent_folders("instances.hcl") + expose = true + merge_strategy = "deep" +} + +dependencies { + paths = ["${get_repo_root()}/config/nodes/${local.node_name}"] +} + +terraform { + source = "${get_repo_root()}/modules/instance" +} + +generate "incus" { + path = "incus.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 = "${yamldecode(file("${get_repo_root()}/config/nodes/${local.node_name}/config.yaml")).node_addr}" + port = "${yamldecode(file("${get_repo_root()}/config/nodes/${local.node_name}/config.yaml")).node_port}" + token = "${get_env("INCUS_TOKEN_${upper(local.node_name)}")}" + default = true + } + } + EOF +} diff --git a/config/instances/ausyd1nxvm2104/config.yaml b/config/instances/ausyd1nxvm2104/config.yaml new file mode 100644 index 0000000..2766791 --- /dev/null +++ b/config/instances/ausyd1nxvm2104/config.yaml @@ -0,0 +1,13 @@ +description: VictoriaLogs-Insert +cobbler_mgmt_classes: + - roles::infra::logs::vlinsert +profiles: + - disk10 + - net_com1_eth0 + - 2core4096 +storage_volumes: + data: + pool: fastpool + path: /data + config: + size: 50GB diff --git a/config/instances/ausyd1nxvm2104/terragrunt.hcl b/config/instances/ausyd1nxvm2104/terragrunt.hcl new file mode 100644 index 0000000..b33a99b --- /dev/null +++ b/config/instances/ausyd1nxvm2104/terragrunt.hcl @@ -0,0 +1,52 @@ +locals { + node_name = "prodnxsr0012" + config_common = yamldecode(file("${get_terragrunt_dir()}/../config_common.yaml")) + config_specific = yamldecode(file("${get_terragrunt_dir()}/config.yaml")) + config = merge(local.config_common, local.config_specific) + instance_name = basename(get_terragrunt_dir()) +} + +inputs = merge( + { + name = local.instance_name + }, + local.config +) + +include "root" { + path = find_in_parent_folders("root.hcl") +} + +include "instances" { + path = find_in_parent_folders("instances.hcl") + expose = true + merge_strategy = "deep" +} + +dependencies { + paths = ["${get_repo_root()}/config/nodes/${local.node_name}"] +} + +terraform { + source = "${get_repo_root()}/modules/instance" +} + +generate "incus" { + path = "incus.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 = "${yamldecode(file("${get_repo_root()}/config/nodes/${local.node_name}/config.yaml")).node_addr}" + port = "${yamldecode(file("${get_repo_root()}/config/nodes/${local.node_name}/config.yaml")).node_port}" + token = "${get_env("INCUS_TOKEN_${upper(local.node_name)}")}" + default = true + } + } + EOF +} diff --git a/config/instances/ausyd1nxvm2105/config.yaml b/config/instances/ausyd1nxvm2105/config.yaml new file mode 100644 index 0000000..80ddc8c --- /dev/null +++ b/config/instances/ausyd1nxvm2105/config.yaml @@ -0,0 +1,7 @@ +description: VictoriaLogs-Select +cobbler_mgmt_classes: + - roles::infra::logs::vlselect +profiles: + - disk10 + - net_com1_eth0 + - 2core4096 diff --git a/config/instances/ausyd1nxvm2105/terragrunt.hcl b/config/instances/ausyd1nxvm2105/terragrunt.hcl new file mode 100644 index 0000000..5326e08 --- /dev/null +++ b/config/instances/ausyd1nxvm2105/terragrunt.hcl @@ -0,0 +1,52 @@ +locals { + node_name = "prodnxsr0013" + config_common = yamldecode(file("${get_terragrunt_dir()}/../config_common.yaml")) + config_specific = yamldecode(file("${get_terragrunt_dir()}/config.yaml")) + config = merge(local.config_common, local.config_specific) + instance_name = basename(get_terragrunt_dir()) +} + +inputs = merge( + { + name = local.instance_name + }, + local.config +) + +include "root" { + path = find_in_parent_folders("root.hcl") +} + +include "instances" { + path = find_in_parent_folders("instances.hcl") + expose = true + merge_strategy = "deep" +} + +dependencies { + paths = ["${get_repo_root()}/config/nodes/${local.node_name}"] +} + +terraform { + source = "${get_repo_root()}/modules/instance" +} + +generate "incus" { + path = "incus.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 = "${yamldecode(file("${get_repo_root()}/config/nodes/${local.node_name}/config.yaml")).node_addr}" + port = "${yamldecode(file("${get_repo_root()}/config/nodes/${local.node_name}/config.yaml")).node_port}" + token = "${get_env("INCUS_TOKEN_${upper(local.node_name)}")}" + default = true + } + } + EOF +} diff --git a/config/instances/ausyd1nxvm2106/config.yaml b/config/instances/ausyd1nxvm2106/config.yaml new file mode 100644 index 0000000..80ddc8c --- /dev/null +++ b/config/instances/ausyd1nxvm2106/config.yaml @@ -0,0 +1,7 @@ +description: VictoriaLogs-Select +cobbler_mgmt_classes: + - roles::infra::logs::vlselect +profiles: + - disk10 + - net_com1_eth0 + - 2core4096 diff --git a/config/instances/ausyd1nxvm2106/terragrunt.hcl b/config/instances/ausyd1nxvm2106/terragrunt.hcl new file mode 100644 index 0000000..c3099a9 --- /dev/null +++ b/config/instances/ausyd1nxvm2106/terragrunt.hcl @@ -0,0 +1,52 @@ +locals { + node_name = "prodnxsr0009" + config_common = yamldecode(file("${get_terragrunt_dir()}/../config_common.yaml")) + config_specific = yamldecode(file("${get_terragrunt_dir()}/config.yaml")) + config = merge(local.config_common, local.config_specific) + instance_name = basename(get_terragrunt_dir()) +} + +inputs = merge( + { + name = local.instance_name + }, + local.config +) + +include "root" { + path = find_in_parent_folders("root.hcl") +} + +include "instances" { + path = find_in_parent_folders("instances.hcl") + expose = true + merge_strategy = "deep" +} + +dependencies { + paths = ["${get_repo_root()}/config/nodes/${local.node_name}"] +} + +terraform { + source = "${get_repo_root()}/modules/instance" +} + +generate "incus" { + path = "incus.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 = "${yamldecode(file("${get_repo_root()}/config/nodes/${local.node_name}/config.yaml")).node_addr}" + port = "${yamldecode(file("${get_repo_root()}/config/nodes/${local.node_name}/config.yaml")).node_port}" + token = "${get_env("INCUS_TOKEN_${upper(local.node_name)}")}" + default = true + } + } + EOF +} diff --git a/config/instances/ausyd1nxvm2107/config.yaml b/config/instances/ausyd1nxvm2107/config.yaml new file mode 100644 index 0000000..80ddc8c --- /dev/null +++ b/config/instances/ausyd1nxvm2107/config.yaml @@ -0,0 +1,7 @@ +description: VictoriaLogs-Select +cobbler_mgmt_classes: + - roles::infra::logs::vlselect +profiles: + - disk10 + - net_com1_eth0 + - 2core4096 diff --git a/config/instances/ausyd1nxvm2107/terragrunt.hcl b/config/instances/ausyd1nxvm2107/terragrunt.hcl new file mode 100644 index 0000000..de7d211 --- /dev/null +++ b/config/instances/ausyd1nxvm2107/terragrunt.hcl @@ -0,0 +1,52 @@ +locals { + node_name = "prodnxsr0010" + config_common = yamldecode(file("${get_terragrunt_dir()}/../config_common.yaml")) + config_specific = yamldecode(file("${get_terragrunt_dir()}/config.yaml")) + config = merge(local.config_common, local.config_specific) + instance_name = basename(get_terragrunt_dir()) +} + +inputs = merge( + { + name = local.instance_name + }, + local.config +) + +include "root" { + path = find_in_parent_folders("root.hcl") +} + +include "instances" { + path = find_in_parent_folders("instances.hcl") + expose = true + merge_strategy = "deep" +} + +dependencies { + paths = ["${get_repo_root()}/config/nodes/${local.node_name}"] +} + +terraform { + source = "${get_repo_root()}/modules/instance" +} + +generate "incus" { + path = "incus.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 = "${yamldecode(file("${get_repo_root()}/config/nodes/${local.node_name}/config.yaml")).node_addr}" + port = "${yamldecode(file("${get_repo_root()}/config/nodes/${local.node_name}/config.yaml")).node_port}" + token = "${get_env("INCUS_TOKEN_${upper(local.node_name)}")}" + default = true + } + } + EOF +} diff --git a/config/instances/ausyd1nxvm2108/config.yaml b/config/instances/ausyd1nxvm2108/config.yaml new file mode 100644 index 0000000..69a1ed3 --- /dev/null +++ b/config/instances/ausyd1nxvm2108/config.yaml @@ -0,0 +1,13 @@ +description: VictoriaLogs-Storage +cobbler_mgmt_classes: + - roles::infra::logs::vlstorage +profiles: + - disk10 + - net_com1_eth0 + - 2core4096 +storage_volumes: + data: + pool: fastpool + path: /data + config: + size: 100GB diff --git a/config/instances/ausyd1nxvm2108/terragrunt.hcl b/config/instances/ausyd1nxvm2108/terragrunt.hcl new file mode 100644 index 0000000..c3099a9 --- /dev/null +++ b/config/instances/ausyd1nxvm2108/terragrunt.hcl @@ -0,0 +1,52 @@ +locals { + node_name = "prodnxsr0009" + config_common = yamldecode(file("${get_terragrunt_dir()}/../config_common.yaml")) + config_specific = yamldecode(file("${get_terragrunt_dir()}/config.yaml")) + config = merge(local.config_common, local.config_specific) + instance_name = basename(get_terragrunt_dir()) +} + +inputs = merge( + { + name = local.instance_name + }, + local.config +) + +include "root" { + path = find_in_parent_folders("root.hcl") +} + +include "instances" { + path = find_in_parent_folders("instances.hcl") + expose = true + merge_strategy = "deep" +} + +dependencies { + paths = ["${get_repo_root()}/config/nodes/${local.node_name}"] +} + +terraform { + source = "${get_repo_root()}/modules/instance" +} + +generate "incus" { + path = "incus.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 = "${yamldecode(file("${get_repo_root()}/config/nodes/${local.node_name}/config.yaml")).node_addr}" + port = "${yamldecode(file("${get_repo_root()}/config/nodes/${local.node_name}/config.yaml")).node_port}" + token = "${get_env("INCUS_TOKEN_${upper(local.node_name)}")}" + default = true + } + } + EOF +} diff --git a/config/instances/ausyd1nxvm2109/config.yaml b/config/instances/ausyd1nxvm2109/config.yaml new file mode 100644 index 0000000..69a1ed3 --- /dev/null +++ b/config/instances/ausyd1nxvm2109/config.yaml @@ -0,0 +1,13 @@ +description: VictoriaLogs-Storage +cobbler_mgmt_classes: + - roles::infra::logs::vlstorage +profiles: + - disk10 + - net_com1_eth0 + - 2core4096 +storage_volumes: + data: + pool: fastpool + path: /data + config: + size: 100GB diff --git a/config/instances/ausyd1nxvm2109/terragrunt.hcl b/config/instances/ausyd1nxvm2109/terragrunt.hcl new file mode 100644 index 0000000..de7d211 --- /dev/null +++ b/config/instances/ausyd1nxvm2109/terragrunt.hcl @@ -0,0 +1,52 @@ +locals { + node_name = "prodnxsr0010" + config_common = yamldecode(file("${get_terragrunt_dir()}/../config_common.yaml")) + config_specific = yamldecode(file("${get_terragrunt_dir()}/config.yaml")) + config = merge(local.config_common, local.config_specific) + instance_name = basename(get_terragrunt_dir()) +} + +inputs = merge( + { + name = local.instance_name + }, + local.config +) + +include "root" { + path = find_in_parent_folders("root.hcl") +} + +include "instances" { + path = find_in_parent_folders("instances.hcl") + expose = true + merge_strategy = "deep" +} + +dependencies { + paths = ["${get_repo_root()}/config/nodes/${local.node_name}"] +} + +terraform { + source = "${get_repo_root()}/modules/instance" +} + +generate "incus" { + path = "incus.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 = "${yamldecode(file("${get_repo_root()}/config/nodes/${local.node_name}/config.yaml")).node_addr}" + port = "${yamldecode(file("${get_repo_root()}/config/nodes/${local.node_name}/config.yaml")).node_port}" + token = "${get_env("INCUS_TOKEN_${upper(local.node_name)}")}" + default = true + } + } + EOF +} diff --git a/config/instances/ausyd1nxvm2110/config.yaml b/config/instances/ausyd1nxvm2110/config.yaml new file mode 100644 index 0000000..69a1ed3 --- /dev/null +++ b/config/instances/ausyd1nxvm2110/config.yaml @@ -0,0 +1,13 @@ +description: VictoriaLogs-Storage +cobbler_mgmt_classes: + - roles::infra::logs::vlstorage +profiles: + - disk10 + - net_com1_eth0 + - 2core4096 +storage_volumes: + data: + pool: fastpool + path: /data + config: + size: 100GB diff --git a/config/instances/ausyd1nxvm2110/terragrunt.hcl b/config/instances/ausyd1nxvm2110/terragrunt.hcl new file mode 100644 index 0000000..98fe447 --- /dev/null +++ b/config/instances/ausyd1nxvm2110/terragrunt.hcl @@ -0,0 +1,52 @@ +locals { + node_name = "prodnxsr0011" + config_common = yamldecode(file("${get_terragrunt_dir()}/../config_common.yaml")) + config_specific = yamldecode(file("${get_terragrunt_dir()}/config.yaml")) + config = merge(local.config_common, local.config_specific) + instance_name = basename(get_terragrunt_dir()) +} + +inputs = merge( + { + name = local.instance_name + }, + local.config +) + +include "root" { + path = find_in_parent_folders("root.hcl") +} + +include "instances" { + path = find_in_parent_folders("instances.hcl") + expose = true + merge_strategy = "deep" +} + +dependencies { + paths = ["${get_repo_root()}/config/nodes/${local.node_name}"] +} + +terraform { + source = "${get_repo_root()}/modules/instance" +} + +generate "incus" { + path = "incus.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 = "${yamldecode(file("${get_repo_root()}/config/nodes/${local.node_name}/config.yaml")).node_addr}" + port = "${yamldecode(file("${get_repo_root()}/config/nodes/${local.node_name}/config.yaml")).node_port}" + token = "${get_env("INCUS_TOKEN_${upper(local.node_name)}")}" + default = true + } + } + EOF +} diff --git a/config/instances/ausyd1nxvm2111/config.yaml b/config/instances/ausyd1nxvm2111/config.yaml new file mode 100644 index 0000000..69a1ed3 --- /dev/null +++ b/config/instances/ausyd1nxvm2111/config.yaml @@ -0,0 +1,13 @@ +description: VictoriaLogs-Storage +cobbler_mgmt_classes: + - roles::infra::logs::vlstorage +profiles: + - disk10 + - net_com1_eth0 + - 2core4096 +storage_volumes: + data: + pool: fastpool + path: /data + config: + size: 100GB diff --git a/config/instances/ausyd1nxvm2111/terragrunt.hcl b/config/instances/ausyd1nxvm2111/terragrunt.hcl new file mode 100644 index 0000000..b33a99b --- /dev/null +++ b/config/instances/ausyd1nxvm2111/terragrunt.hcl @@ -0,0 +1,52 @@ +locals { + node_name = "prodnxsr0012" + config_common = yamldecode(file("${get_terragrunt_dir()}/../config_common.yaml")) + config_specific = yamldecode(file("${get_terragrunt_dir()}/config.yaml")) + config = merge(local.config_common, local.config_specific) + instance_name = basename(get_terragrunt_dir()) +} + +inputs = merge( + { + name = local.instance_name + }, + local.config +) + +include "root" { + path = find_in_parent_folders("root.hcl") +} + +include "instances" { + path = find_in_parent_folders("instances.hcl") + expose = true + merge_strategy = "deep" +} + +dependencies { + paths = ["${get_repo_root()}/config/nodes/${local.node_name}"] +} + +terraform { + source = "${get_repo_root()}/modules/instance" +} + +generate "incus" { + path = "incus.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 = "${yamldecode(file("${get_repo_root()}/config/nodes/${local.node_name}/config.yaml")).node_addr}" + port = "${yamldecode(file("${get_repo_root()}/config/nodes/${local.node_name}/config.yaml")).node_port}" + token = "${get_env("INCUS_TOKEN_${upper(local.node_name)}")}" + default = true + } + } + EOF +} diff --git a/config/instances/ausyd1nxvm2112/config.yaml b/config/instances/ausyd1nxvm2112/config.yaml new file mode 100644 index 0000000..69a1ed3 --- /dev/null +++ b/config/instances/ausyd1nxvm2112/config.yaml @@ -0,0 +1,13 @@ +description: VictoriaLogs-Storage +cobbler_mgmt_classes: + - roles::infra::logs::vlstorage +profiles: + - disk10 + - net_com1_eth0 + - 2core4096 +storage_volumes: + data: + pool: fastpool + path: /data + config: + size: 100GB diff --git a/config/instances/ausyd1nxvm2112/terragrunt.hcl b/config/instances/ausyd1nxvm2112/terragrunt.hcl new file mode 100644 index 0000000..5326e08 --- /dev/null +++ b/config/instances/ausyd1nxvm2112/terragrunt.hcl @@ -0,0 +1,52 @@ +locals { + node_name = "prodnxsr0013" + config_common = yamldecode(file("${get_terragrunt_dir()}/../config_common.yaml")) + config_specific = yamldecode(file("${get_terragrunt_dir()}/config.yaml")) + config = merge(local.config_common, local.config_specific) + instance_name = basename(get_terragrunt_dir()) +} + +inputs = merge( + { + name = local.instance_name + }, + local.config +) + +include "root" { + path = find_in_parent_folders("root.hcl") +} + +include "instances" { + path = find_in_parent_folders("instances.hcl") + expose = true + merge_strategy = "deep" +} + +dependencies { + paths = ["${get_repo_root()}/config/nodes/${local.node_name}"] +} + +terraform { + source = "${get_repo_root()}/modules/instance" +} + +generate "incus" { + path = "incus.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 = "${yamldecode(file("${get_repo_root()}/config/nodes/${local.node_name}/config.yaml")).node_addr}" + port = "${yamldecode(file("${get_repo_root()}/config/nodes/${local.node_name}/config.yaml")).node_port}" + token = "${get_env("INCUS_TOKEN_${upper(local.node_name)}")}" + default = true + } + } + EOF +} diff --git a/config/instances/ausyd1nxvm2113/config.yaml b/config/instances/ausyd1nxvm2113/config.yaml new file mode 100644 index 0000000..a15ed54 --- /dev/null +++ b/config/instances/ausyd1nxvm2113/config.yaml @@ -0,0 +1,13 @@ +description: VictoraLogs-Agent +cobbler_mgmt_classes: + - roles::infra::logs::vlagent +profiles: + - disk10 + - net_com1_eth0 + - 2core4096 +storage_volumes: + data: + pool: fastpool + path: /data + config: + size: 50GB diff --git a/config/instances/ausyd1nxvm2113/terragrunt.hcl b/config/instances/ausyd1nxvm2113/terragrunt.hcl new file mode 100644 index 0000000..b33a99b --- /dev/null +++ b/config/instances/ausyd1nxvm2113/terragrunt.hcl @@ -0,0 +1,52 @@ +locals { + node_name = "prodnxsr0012" + config_common = yamldecode(file("${get_terragrunt_dir()}/../config_common.yaml")) + config_specific = yamldecode(file("${get_terragrunt_dir()}/config.yaml")) + config = merge(local.config_common, local.config_specific) + instance_name = basename(get_terragrunt_dir()) +} + +inputs = merge( + { + name = local.instance_name + }, + local.config +) + +include "root" { + path = find_in_parent_folders("root.hcl") +} + +include "instances" { + path = find_in_parent_folders("instances.hcl") + expose = true + merge_strategy = "deep" +} + +dependencies { + paths = ["${get_repo_root()}/config/nodes/${local.node_name}"] +} + +terraform { + source = "${get_repo_root()}/modules/instance" +} + +generate "incus" { + path = "incus.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 = "${yamldecode(file("${get_repo_root()}/config/nodes/${local.node_name}/config.yaml")).node_addr}" + port = "${yamldecode(file("${get_repo_root()}/config/nodes/${local.node_name}/config.yaml")).node_port}" + token = "${get_env("INCUS_TOKEN_${upper(local.node_name)}")}" + default = true + } + } + EOF +} diff --git a/config/instances/ausyd1nxvm2114/config.yaml b/config/instances/ausyd1nxvm2114/config.yaml new file mode 100644 index 0000000..a15ed54 --- /dev/null +++ b/config/instances/ausyd1nxvm2114/config.yaml @@ -0,0 +1,13 @@ +description: VictoraLogs-Agent +cobbler_mgmt_classes: + - roles::infra::logs::vlagent +profiles: + - disk10 + - net_com1_eth0 + - 2core4096 +storage_volumes: + data: + pool: fastpool + path: /data + config: + size: 50GB diff --git a/config/instances/ausyd1nxvm2114/terragrunt.hcl b/config/instances/ausyd1nxvm2114/terragrunt.hcl new file mode 100644 index 0000000..5326e08 --- /dev/null +++ b/config/instances/ausyd1nxvm2114/terragrunt.hcl @@ -0,0 +1,52 @@ +locals { + node_name = "prodnxsr0013" + config_common = yamldecode(file("${get_terragrunt_dir()}/../config_common.yaml")) + config_specific = yamldecode(file("${get_terragrunt_dir()}/config.yaml")) + config = merge(local.config_common, local.config_specific) + instance_name = basename(get_terragrunt_dir()) +} + +inputs = merge( + { + name = local.instance_name + }, + local.config +) + +include "root" { + path = find_in_parent_folders("root.hcl") +} + +include "instances" { + path = find_in_parent_folders("instances.hcl") + expose = true + merge_strategy = "deep" +} + +dependencies { + paths = ["${get_repo_root()}/config/nodes/${local.node_name}"] +} + +terraform { + source = "${get_repo_root()}/modules/instance" +} + +generate "incus" { + path = "incus.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 = "${yamldecode(file("${get_repo_root()}/config/nodes/${local.node_name}/config.yaml")).node_addr}" + port = "${yamldecode(file("${get_repo_root()}/config/nodes/${local.node_name}/config.yaml")).node_port}" + token = "${get_env("INCUS_TOKEN_${upper(local.node_name)}")}" + default = true + } + } + EOF +}