External node classifiers – ENCs
ENCs are used to assign classes, parameters, and an environment to nodes. The output of an ENC must either be valid YAML or nothing. The simplest type of ENC is a script that is written using the exec node terminus, which executes the script that is pointed to by the external_nodes setting in puppet.conf.
When using the exec terminus, the exit code of the script should be zero, unless there is a problem executing the script.
When Puppet is configured to use an ENC, the output of the ENC is merged with the output from your site.pp file. This can be a problem when you are debugging. After a successful catalog compile and agent run, the classes.txt file will contain a list of all the classes that were applied to the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access