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.
25 lines
518 B
Terraform
25 lines
518 B
Terraform
provider "cobbler" {
|
|
username = var.cobbler_username
|
|
password = var.cobbler_password
|
|
url = var.cobbler_url
|
|
}
|
|
|
|
provider "puppetdb" {
|
|
url = var.puppetdb_url
|
|
ca = var.puppet_cert_ca
|
|
cert = var.puppet_cert_pub
|
|
key = var.puppet_cert_priv
|
|
}
|
|
|
|
provider "puppetca" {
|
|
url = var.puppetca_url
|
|
ca = var.puppet_cert_ca
|
|
cert = var.puppet_cert_pub
|
|
key = var.puppet_cert_priv
|
|
}
|
|
|
|
provider "encapi" {
|
|
endpoint = var.encapi_endpoint
|
|
# token defaults to the ENCAPI_WRITE_TOKEN environment variable
|
|
}
|