Ask Your Question

Revision history [back]

The puppet code is compiled on the server and doesn't have access to environment variables on the target system.

If you want to transport information from the agent to the master, you need to pull it into a custom fact.

If you already know the value you are putting into the environment variable, another (possibly better solution) is to use the source of the information to drive your puppet code.