4b9a6de83b
Build / build (pull_request) Failing after 11m25s
Seed encapi (statuses, roles, prodnxsr node assignments) and make the instance module also create an encapi_node for every VM, so the k8s puppetserver ENC can cut over from Cobbler. Cobbler/puppetca/puppetdb resources are left untouched. - Add config/encapi leaf + modules/encapi driving statuses/roles/nodes from YAML (3 statuses, 51 roles, 13 prodnxsr physical nodes). - Add encapi_node to modules/instance (certname, role, environment). - Wire encapi provider into root.hcl required_providers and the module providers; plumb ENCAPI_WRITE_TOKEN via Makefile vault_env.
20 lines
436 B
HCL
20 lines
436 B
HCL
locals {
|
|
statuses = yamldecode(file("${get_terragrunt_dir()}/statuses.yaml"))
|
|
roles = yamldecode(file("${get_terragrunt_dir()}/roles.yaml"))
|
|
nodes = yamldecode(file("${get_terragrunt_dir()}/nodes.yaml"))
|
|
}
|
|
|
|
include "root" {
|
|
path = find_in_parent_folders("root.hcl")
|
|
}
|
|
|
|
terraform {
|
|
source = "${get_repo_root()}/modules/encapi"
|
|
}
|
|
|
|
inputs = {
|
|
statuses = local.statuses
|
|
roles = local.roles
|
|
nodes = local.nodes
|
|
}
|