You will need to make an adjustment to puppet.conf on the Puppet Masters
environmentpath = $confdir/environments
Your Puppet Master should then be searching for modules in
In your puppet.conf on each agent machine you can specify the environment in the agent block, this will pass the environment to the master when you fetch your catalog. You can then use the built in fact ::environment to make choices based on values.
environment = dev
Running the agent should pull data from the master using modules found at
You can use any arbitrary string really and call your environments what you like and what makes most sense for your needs.