I'm reading through the Puppet Documentation on adding a custom fact. Most of the information seems related to making module that runs on the agent.
In my case I just want a simple environment variable that I could set from the master for each node. Then my ENC would make a PuppetDb query to see what environment it should serve.
Can I do this, or do all facts originate from the agent?