[Puppet Users] Re: enviroments are not being used
give the module path in development [development] modulepath = /etc/puppet/environments/development/modules Thanks On Aug 12, 2:39 pm, Frederiko Costa freder...@gmail.com wrote: Hello everyone, I have the following environments configured as master: # puppetmasterd -V 0.25.4 # cat puppet.conf [main] confir=/etc/puppet logdir=/var/log/puppet vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl rundir=/var/run/puppet pidfile=$rundir/puppetmasterd.pid factpath=$vardir/lib/facter pluginsync=true templatedir=$confdir/templates prerun_command=/etc/puppet/etckeeper-commit-pre postrun_command=/etc/puppet/etckeeper-commit-post [master] modulepath=$confdir/environments/$environment/modules:$confdir/modules manifest=$confdir/manifests/unknown.pp [development] manifest = $confdir/manifests/site.pp [testing] manifest = $confdir/manifests/site.pp I have the modules in place, for every environment. This does not seem to be an issue. Certificates are correctly signed. The problem is that my agent located on another host, does not load the development environment whenever I run the following command: # puppetd -V 0.25.4 # puppetd agent --verbose --server=lbre-puppet.stanford.edu --noop --test --environment development I get the following in the agent when I run the command above: info: Caching catalog for ganglia01.stanford.edu info: Applying configuration version '1313184594' notice: //gangliamonitor::service/Service[ganglia-monitor]/ensure: is stopped, should be running (noop) notice: Finished catalog run in 0.11 seconds It runs fine, but not the development environment. I even mess it up the development module to make sure it was running something different. It runs the main one. The master's output is the regular output as if I had ran without the --environment switch. Does anyone know what could be missing or causing this behavior? I appreciate in advance. -Fred -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Re: enviroments are not being used
in continuation. and put/copy your modules in the path, that should do the trick. On Aug 12, 3:14 pm, newguy aimanparv...@gmail.com wrote: give the module path in development [development] modulepath = /etc/puppet/environments/development/modules Thanks On Aug 12, 2:39 pm, Frederiko Costa freder...@gmail.com wrote: Hello everyone, I have the following environments configured as master: # puppetmasterd -V 0.25.4 # cat puppet.conf [main] confir=/etc/puppet logdir=/var/log/puppet vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl rundir=/var/run/puppet pidfile=$rundir/puppetmasterd.pid factpath=$vardir/lib/facter pluginsync=true templatedir=$confdir/templates prerun_command=/etc/puppet/etckeeper-commit-pre postrun_command=/etc/puppet/etckeeper-commit-post [master] modulepath=$confdir/environments/$environment/modules:$confdir/modules manifest=$confdir/manifests/unknown.pp [development] manifest = $confdir/manifests/site.pp [testing] manifest = $confdir/manifests/site.pp I have the modules in place, for every environment. This does not seem to be an issue. Certificates are correctly signed. The problem is that my agent located on another host, does not load the development environment whenever I run the following command: # puppetd -V 0.25.4 # puppetd agent --verbose --server=lbre-puppet.stanford.edu --noop --test --environment development I get the following in the agent when I run the command above: info: Caching catalog for ganglia01.stanford.edu info: Applying configuration version '1313184594' notice: //gangliamonitor::service/Service[ganglia-monitor]/ensure: is stopped, should be running (noop) notice: Finished catalog run in 0.11 seconds It runs fine, but not the development environment. I even mess it up the development module to make sure it was running something different. It runs the main one. The master's output is the regular output as if I had ran without the --environment switch. Does anyone know what could be missing or causing this behavior? I appreciate in advance. -Fred -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Re: enviroments are not being used
Hi newguy, Thanks for your help. However, it did not work. In fact, I had tried that previously. The approach you mentioned, I think it's the approach that the Pro Puppet book take. It did not work either. Still gets the production one: Here is the output when I set puppermaster to --debug --no-daemonize: debug: importing '/etc/puppet/manifests/nodes.pp' debug: importing '/etc/puppet/modules/ssh/manifests/init.pp' info: Autoloaded module ssh debug: importing '/etc/puppet/modules/ssh/manifests/params.pp' info: Autoloaded file ssh/params from module ssh debug: No true answers and no default warning: Scope(Class[ssh]): The 'require' function is only compatible with clients at 0.25 and above; including class but not adding dependency debug: importing '/etc/puppet/modules/ssh/manifests/install.pp' info: Autoloaded file ssh/install from module ssh debug: importing '/etc/puppet/modules/ssh/manifests/config.pp' info: Autoloaded file ssh/config from module ssh debug: importing '/etc/puppet/modules/ssh/manifests/service.pp' info: Autoloaded file ssh/service from module ssh Is there any other thing you or someone else suggests? Regards, -fred On Fri, Aug 12, 2011 at 3:15 PM, newguy aimanparv...@gmail.com wrote: in continuation. and put/copy your modules in the path, that should do the trick. On Aug 12, 3:14 pm, newguy aimanparv...@gmail.com wrote: give the module path in development [development] modulepath = /etc/puppet/environments/development/modules Thanks On Aug 12, 2:39 pm, Frederiko Costa freder...@gmail.com wrote: Hello everyone, I have the following environments configured as master: # puppetmasterd -V 0.25.4 # cat puppet.conf [main] confir=/etc/puppet logdir=/var/log/puppet vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl rundir=/var/run/puppet pidfile=$rundir/puppetmasterd.pid factpath=$vardir/lib/facter pluginsync=true templatedir=$confdir/templates prerun_command=/etc/puppet/etckeeper-commit-pre postrun_command=/etc/puppet/etckeeper-commit-post [master] modulepath=$confdir/environments/$environment/modules:$confdir/modules manifest=$confdir/manifests/unknown.pp [development] manifest = $confdir/manifests/site.pp [testing] manifest = $confdir/manifests/site.pp I have the modules in place, for every environment. This does not seem to be an issue. Certificates are correctly signed. The problem is that my agent located on another host, does not load the development environment whenever I run the following command: # puppetd -V 0.25.4 # puppetd agent --verbose --server=lbre-puppet.stanford.edu --noop --test --environment development I get the following in the agent when I run the command above: info: Caching catalog for ganglia01.stanford.edu info: Applying configuration version '1313184594' notice: //gangliamonitor::service/Service[ganglia-monitor]/ensure: is stopped, should be running (noop) notice: Finished catalog run in 0.11 seconds It runs fine, but not the development environment. I even mess it up the development module to make sure it was running something different. It runs the main one. The master's output is the regular output as if I had ran without the --environment switch. Does anyone know what could be missing or causing this behavior? I appreciate in advance. -Fred -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.