O'Reilly logo

Troubleshooting Puppet by Thomas Uphill

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required