> On the staging nodes, I've got this entry under [puppetd] in
> puppet.conf:
> environment = staging


  Tore.

To get environments working I had to include modulepath, manifest and
manifestdir under each enviroment in puppet.conf.   For example my
testing stanza from the client puppet.conf looks like this

[testing]
    modulepath  = /etc/puppet-test/modules
    manifest    = /etc/puppet-test/manifests/site.pp
    manifestdir = /etc/puppet-test/manifests


 I've found the "configprint" command line argument a necessity to get
environments working.

 For example before I included manifestdir in my client node
puppet.conf I saw this

[r...@dev-sandbox]puppetd --test --debug --environment testing --
configprint environment,manifestdir
environment = testing
manifestdir = /etc/puppet/manifests

 Then when I added the manifestdir in puppet.conf everything was happy

[r...@dev-sandbox]puppetd --test --debug --environment testing --
configprint environment,manifestdir
environment = testing
manifestdir = /etc/puppet-test/manifests


 I'm not an expert at environments and it took me awhile to realize
that I needed the client side puppet.conf configurations and that the
command line flag "--environment" was not enough to indicate which
environment to use.

  Try playing with your clients puppet.conf and running with
configprint to see if that provides more insight into what's
happening.

  HTH.  Derek.




>
> But, the nodes are still directed to the default environment under /
> etc/puppet/ {manifests, modules}. Even if I exectued puppetd manually
> it wont work:
> # puppetd --verbose --no-daemonize --environment=staging
> notice: Starting Puppet client version 0.25.4
> info: Caching catalog for X
> info: Applying configuration version '1269955369'
> notice: Finished catalog run in 0.01 seconds
> notice: Caught INT; calling stop
>
> Have no idea what to try now, any suggestions?

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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.

Reply via email to