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

41 lines
811 B
Markdown

---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "encapi_node Data Source - encapi"
subcategory: ""
description: |-
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
```terraform
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 generated by tfplugindocs -->
## 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.