Compare commits
No commits in common. "0ca4fc0cf0ea215d8b6db045541b6351329c2dad" and "1d9684f403e2c7e02d47b75c78964c1cbd211409" have entirely different histories.
0ca4fc0cf0
...
1d9684f403
@ -7,7 +7,7 @@ on:
|
|||||||
- master
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
build:
|
||||||
runs-on: almalinux-8
|
runs-on: almalinux-8
|
||||||
container:
|
container:
|
||||||
image: git.unkin.net/unkin/almalinux9-actionsdind:latest
|
image: git.unkin.net/unkin/almalinux9-actionsdind:latest
|
||||||
|
|||||||
@ -1,7 +0,0 @@
|
|||||||
description: TestHost
|
|
||||||
cobbler_mgmt_classes:
|
|
||||||
- roles::base
|
|
||||||
profiles:
|
|
||||||
- disk10
|
|
||||||
- net_com1_eth0
|
|
||||||
- 2core4096
|
|
||||||
@ -1,54 +0,0 @@
|
|||||||
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}"]
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
generate "incus" {
|
|
||||||
path = "incus.tf"
|
|
||||||
if_exists = "overwrite_terragrunt"
|
|
||||||
contents = <<-EOF
|
|
||||||
provider "incus" {
|
|
||||||
generate_client_certificates = false
|
|
||||||
accept_remote_certificate = true
|
|
||||||
config_dir = "${get_env("INCUS_CONFIG_DIR")}"
|
|
||||||
|
|
||||||
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
|
|
||||||
}
|
|
||||||
terraform {
|
|
||||||
source = "${get_repo_root()}/modules/instance"
|
|
||||||
}
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user