feat: add vicmet hosts #14
2
Makefile
2
Makefile
@ -27,7 +27,7 @@ init:
|
|||||||
|
|
||||||
plan: init
|
plan: init
|
||||||
@$(call vault_env) && \
|
@$(call vault_env) && \
|
||||||
terragrunt run-all --terragrunt-non-interactive plan
|
terragrunt run-all --terragrunt-parallelism 8 --terragrunt-non-interactive plan
|
||||||
|
|
||||||
apply:
|
apply:
|
||||||
@$(call vault_env) && \
|
@$(call vault_env) && \
|
||||||
|
|||||||
13
config/instances/ausyd1nxvm2086/config.yaml
Normal file
13
config/instances/ausyd1nxvm2086/config.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
description: VicMet-vmstorage
|
||||||
|
cobbler_mgmt_classes:
|
||||||
|
- roles::infra::metrics::vmstorage
|
||||||
|
profiles:
|
||||||
|
- disk10
|
||||||
|
- net_com1_eth0
|
||||||
|
- 2core2048
|
||||||
|
storage_volumes:
|
||||||
|
data:
|
||||||
|
pool: fastpool
|
||||||
|
path: /data
|
||||||
|
config:
|
||||||
|
size: 100GB
|
||||||
52
config/instances/ausyd1nxvm2086/terragrunt.hcl
Normal file
52
config/instances/ausyd1nxvm2086/terragrunt.hcl
Normal file
@ -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
|
||||||
|
}
|
||||||
13
config/instances/ausyd1nxvm2087/config.yaml
Normal file
13
config/instances/ausyd1nxvm2087/config.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
description: VicMet-vmstorage
|
||||||
|
cobbler_mgmt_classes:
|
||||||
|
- roles::infra::metrics::vmstorage
|
||||||
|
profiles:
|
||||||
|
- disk10
|
||||||
|
- net_com1_eth0
|
||||||
|
- 2core2048
|
||||||
|
storage_volumes:
|
||||||
|
data:
|
||||||
|
pool: fastpool
|
||||||
|
path: /data
|
||||||
|
config:
|
||||||
|
size: 100GB
|
||||||
52
config/instances/ausyd1nxvm2087/terragrunt.hcl
Normal file
52
config/instances/ausyd1nxvm2087/terragrunt.hcl
Normal file
@ -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
|
||||||
|
}
|
||||||
13
config/instances/ausyd1nxvm2088/config.yaml
Normal file
13
config/instances/ausyd1nxvm2088/config.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
description: VicMet-vmstorage
|
||||||
|
cobbler_mgmt_classes:
|
||||||
|
- roles::infra::metrics::vmstorage
|
||||||
|
profiles:
|
||||||
|
- disk10
|
||||||
|
- net_com1_eth0
|
||||||
|
- 2core2048
|
||||||
|
storage_volumes:
|
||||||
|
data:
|
||||||
|
pool: fastpool
|
||||||
|
path: /data
|
||||||
|
config:
|
||||||
|
size: 100GB
|
||||||
52
config/instances/ausyd1nxvm2088/terragrunt.hcl
Normal file
52
config/instances/ausyd1nxvm2088/terragrunt.hcl
Normal file
@ -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
|
||||||
|
}
|
||||||
13
config/instances/ausyd1nxvm2089/config.yaml
Normal file
13
config/instances/ausyd1nxvm2089/config.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
description: VicMet-vmstorage
|
||||||
|
cobbler_mgmt_classes:
|
||||||
|
- roles::infra::metrics::vmstorage
|
||||||
|
profiles:
|
||||||
|
- disk10
|
||||||
|
- net_com1_eth0
|
||||||
|
- 2core2048
|
||||||
|
storage_volumes:
|
||||||
|
data:
|
||||||
|
pool: fastpool
|
||||||
|
path: /data
|
||||||
|
config:
|
||||||
|
size: 100GB
|
||||||
52
config/instances/ausyd1nxvm2089/terragrunt.hcl
Normal file
52
config/instances/ausyd1nxvm2089/terragrunt.hcl
Normal file
@ -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
|
||||||
|
}
|
||||||
13
config/instances/ausyd1nxvm2090/config.yaml
Normal file
13
config/instances/ausyd1nxvm2090/config.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
description: VicMet-vmstorage
|
||||||
|
cobbler_mgmt_classes:
|
||||||
|
- roles::infra::metrics::vmstorage
|
||||||
|
profiles:
|
||||||
|
- disk10
|
||||||
|
- net_com1_eth0
|
||||||
|
- 2core2048
|
||||||
|
storage_volumes:
|
||||||
|
data:
|
||||||
|
pool: fastpool
|
||||||
|
path: /data
|
||||||
|
config:
|
||||||
|
size: 100GB
|
||||||
52
config/instances/ausyd1nxvm2090/terragrunt.hcl
Normal file
52
config/instances/ausyd1nxvm2090/terragrunt.hcl
Normal file
@ -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
|
||||||
|
}
|
||||||
7
config/instances/ausyd1nxvm2091/config.yaml
Normal file
7
config/instances/ausyd1nxvm2091/config.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
description: VicMet-vminsert
|
||||||
|
cobbler_mgmt_classes:
|
||||||
|
- roles::infra::metrics::vminsert
|
||||||
|
profiles:
|
||||||
|
- disk20
|
||||||
|
- net_com1_eth0
|
||||||
|
- 2core2048
|
||||||
52
config/instances/ausyd1nxvm2091/terragrunt.hcl
Normal file
52
config/instances/ausyd1nxvm2091/terragrunt.hcl
Normal file
@ -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
|
||||||
|
}
|
||||||
7
config/instances/ausyd1nxvm2092/config.yaml
Normal file
7
config/instances/ausyd1nxvm2092/config.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
description: VicMet-vminsert
|
||||||
|
cobbler_mgmt_classes:
|
||||||
|
- roles::infra::metrics::vminsert
|
||||||
|
profiles:
|
||||||
|
- disk20
|
||||||
|
- net_com1_eth0
|
||||||
|
- 2core2048
|
||||||
52
config/instances/ausyd1nxvm2092/terragrunt.hcl
Normal file
52
config/instances/ausyd1nxvm2092/terragrunt.hcl
Normal file
@ -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
|
||||||
|
}
|
||||||
7
config/instances/ausyd1nxvm2093/config.yaml
Normal file
7
config/instances/ausyd1nxvm2093/config.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
description: VicMet-vminsert
|
||||||
|
cobbler_mgmt_classes:
|
||||||
|
- roles::infra::metrics::vminsert
|
||||||
|
profiles:
|
||||||
|
- disk20
|
||||||
|
- net_com1_eth0
|
||||||
|
- 2core2048
|
||||||
52
config/instances/ausyd1nxvm2093/terragrunt.hcl
Normal file
52
config/instances/ausyd1nxvm2093/terragrunt.hcl
Normal file
@ -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
|
||||||
|
}
|
||||||
7
config/instances/ausyd1nxvm2094/config.yaml
Normal file
7
config/instances/ausyd1nxvm2094/config.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
description: VicMet-vmselect
|
||||||
|
cobbler_mgmt_classes:
|
||||||
|
- roles::infra::metrics::vmselect
|
||||||
|
profiles:
|
||||||
|
- disk20
|
||||||
|
- net_com1_eth0
|
||||||
|
- 2core2048
|
||||||
52
config/instances/ausyd1nxvm2094/terragrunt.hcl
Normal file
52
config/instances/ausyd1nxvm2094/terragrunt.hcl
Normal file
@ -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
|
||||||
|
}
|
||||||
7
config/instances/ausyd1nxvm2095/config.yaml
Normal file
7
config/instances/ausyd1nxvm2095/config.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
description: VicMet-vmselect
|
||||||
|
cobbler_mgmt_classes:
|
||||||
|
- roles::infra::metrics::vmselect
|
||||||
|
profiles:
|
||||||
|
- disk20
|
||||||
|
- net_com1_eth0
|
||||||
|
- 2core2048
|
||||||
52
config/instances/ausyd1nxvm2095/terragrunt.hcl
Normal file
52
config/instances/ausyd1nxvm2095/terragrunt.hcl
Normal file
@ -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
|
||||||
|
}
|
||||||
7
config/instances/ausyd1nxvm2096/config.yaml
Normal file
7
config/instances/ausyd1nxvm2096/config.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
description: VicMet-vmselect
|
||||||
|
cobbler_mgmt_classes:
|
||||||
|
- roles::infra::metrics::vmselect
|
||||||
|
profiles:
|
||||||
|
- disk20
|
||||||
|
- net_com1_eth0
|
||||||
|
- 2core2048
|
||||||
52
config/instances/ausyd1nxvm2096/terragrunt.hcl
Normal file
52
config/instances/ausyd1nxvm2096/terragrunt.hcl
Normal file
@ -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
|
||||||
|
}
|
||||||
@ -62,6 +62,9 @@ variables:
|
|||||||
- roles::infra::k8s::worker
|
- roles::infra::k8s::worker
|
||||||
- roles::infra::metrics::grafana
|
- roles::infra::metrics::grafana
|
||||||
- roles::infra::metrics::prometheus
|
- roles::infra::metrics::prometheus
|
||||||
|
- roles::infra::metrics::vmstorage
|
||||||
|
- roles::infra::metrics::vminsert
|
||||||
|
- roles::infra::metrics::vmselect
|
||||||
- roles::infra::nomad::agent
|
- roles::infra::nomad::agent
|
||||||
- roles::infra::nomad::agentv2
|
- roles::infra::nomad::agentv2
|
||||||
- roles::infra::nomad::server
|
- roles::infra::nomad::server
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user