Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Use agent environment in ENC

I would like to access the "environment" the client node is requesting from inside my ENC script.

I see tickets like this where it seems to be resolved:

  • https://tickets.puppetlabs.com/browse/PUP-4521
  • https://tickets.puppetlabs.com/browse/PUP-4522

But I just can't figure out what variable will give me this info. Assuming my ENC is a simple Ruby script that just creates a role based on hostname, an example would be especially helpful.

Thanks

Use agent environment in ENC

I would like to access the "environment" the client node is requesting from inside my ENC script.

I see tickets like this where it seems to be resolved:

  • https://tickets.puppetlabs.com/browse/PUP-4521
  • https://tickets.puppetlabs.com/browse/PUP-4522

But I just can't figure out what variable will give me this info. Assuming my ENC is a simple Ruby script that just creates a role based on hostname, an example would be especially helpful.

ThanksThanks!