This repository has been archived on 2026-11-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files

811 B

page_title, subcategory, description
page_title subcategory description
encapi_node Data Source - encapi Looks up the role/environment/params assigned to a Puppet node.

encapi_node (Data Source)

Looks up the role/environment/params assigned to a Puppet node.

Example Usage

data "encapi_node" "web0" {
  certname = "node01.example.com"
}

output "web0_role" {
  value = data.encapi_node.web0.role
}

output "web0_environment" {
  value = data.encapi_node.web0.environment
}

Schema

Required

  • certname (String) Puppet certname (fqdn).

Read-Only

  • environment (String) Assigned environment/status.
  • params (String) Per-node params as JSON.
  • role (String) Assigned role.