77049f4c3d
Terraform/OpenTofu provider for encapi (the Puppet ENC replacing Cobbler). - resources: encapi_role (jsonencode default_params), encapi_status, encapi_node - data sources: encapi_node, encapi_role - client with bearer-token auth; unit tests; examples - Makefile (package->zip), Woodpecker CI publishing to the artifactapi terraform-unkin registry on tag
11 lines
284 B
Terraform
11 lines
284 B
Terraform
resource "encapi_node" "example" {
|
|
certname = "ausyd1nxvm2000.main.unkin.net"
|
|
role = "roles::infra::storage::vault"
|
|
environment = "testing"
|
|
|
|
# Optional per-node overrides (win over the role's default_params).
|
|
params = jsonencode({
|
|
vault_role = "leader"
|
|
})
|
|
}
|