I just set this up myself. You need to create your environments directory structures is you haven't already.
/etc/puppet/environment/{dev|prod)/(manifests|modules|environment.conf|hierdata) Hope you understand that. Then you need to change your puppet.conf on the master. Add these lines under main environmentpath = $confdir/environments basemodulepath = $confdir/modules:/opt/puppet/share/puppet/modules Then under each environement, add this to environment.conf modulepath = $confdir/environments/development/modules:$basemodulepath manifest = $confdir/environments/development/manifests/ Now on your agents, just add a line like this under main environment = development or environment = production. Now when you run the agent(s), it should pull the data from under the environements manifests directory. On Thursday, May 26, 2016 at 8:45:54 AM UTC-5, John Doe wrote: > > Hey, > > I been stuck for a while with this now. > > Thing is that I can't understand how tell puppetmaster to issue different > environments for the agent. I see in Puppet Enterprise everything is > explained very well and detailed, but in open source version everything > looks very messy, there is no clear picture how things should look like. > > The most confusing part here for me is that how to TEACH puppetmaster > identify nodes and then assign them to appropriate environment? > > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/4c80ce94-9521-4ed5-9436-aaa488c38dd9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.