Legacy: Modify the external node classifier script

Puppet uses an external node classifier (ENC) Python script to determine which node definitions to use.

Before you begin

Role required: puppet_admin

About this task

The instance provides a version of the script that identifies the instance as an external node classifier. An administrator can enable a Puppet Master to use the script.

Procedure

  1. Navigate to Puppet > ENC Scripts.
  2. Select snc_enc.py. Alternatively, select snc_enc_with_proxy.py to send puppet requests through a proxy server.
  3. [Optional] Modify the Script to use your existing node classifications. A history of modifications to the script appears in the Versions related list.

    To use an outside source for node definitions, modify the default enc.py script to use your existing configuration information.

  4. Click Download.
  5. Use a text editor to edit the downloaded snc_enc.py file to include your instance name as well as the Puppet user credentials.

    Do not add the credentials to the script before downloading a copy. Adding credentials before downloading the script poses a security risk.

  6. Configure the Puppet Master to use the new snc_enc.py file as the external node classifier script.
    For more information, see the Puppet Labs external node documentation.
    Figure 1. Puppet ENC Script