Well, I simply left the agent idling tonight and by some voodoo this morning it's connected to the new environment.
But to answer your questions: Yes, I had a puppet.conf in place which also pointed to the correct server and the new environment. Strange. Thanks for helping! Bernd > -----Ursprüngliche Nachricht----- > Von: puppet-users@googlegroups.com [mailto:puppet- > us...@googlegroups.com] Im Auftrag von Peter Brown > Gesendet: Donnerstag, 9. August 2012 02:02 > An: puppet-users@googlegroups.com > Betreff: Re: [Puppet Users] Switching agent to another environment does > not work > > Just in case you didn't know that command will only apply the > environment for that run. > It won't switch the node to the environment permanently, you need to > set environment in puppet.conf to do that. > > On 9 August 2012 02:18, Ryan Coleman <r...@puppetlabs.com> wrote: > > On Wed, Aug 8, 2012 at 8:45 AM, Bernd Adamowicz > > <bernd.adamow...@esailors.de> wrote: > >> Tried to attach one of my agents to another environment with a > command like this: > >> > >> puppet agent --verbose --debug --server my.puppet.master > >> --environment my_new_env --no-daemonize > >> > >> But it still receives the old catalog of the old environment. No > errors or warnings in log files both on master and agent. So I can't > provide more information. Agent and master are on version 2.6.12. > >> > >> Any ideas? > > > > What does the configuration look like in puppet.conf for the > > my_new_env environment? > > > >> > >> Thanks > >> Bernd > >> > >> -- > >> 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. > >> > > > > > > > > -- > > Ryan Coleman | about.me/ryc > > Modules & Forge @ Puppet Labs > > > > -- > > 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. -- 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.