Johnny Tan
2008-Jun-25 15:07 UTC
[Puppet Users] error: Invalid environment staging (ArgumentError)
I''m running puppet 0.24.4 on both server & client. My puppet server config has this: [main] environment = production environments = production,staging [production] manifest = /etc/puppet/production/manifests/site.pp modulepath = /etc/puppet/production/modules [staging] manifest = /etc/puppet/staging/manifests/site.pp modulepath = /etc/puppet/staging/modules My client config has this: [main] environment = staging = When I run puppet either on the command-line or via init.d, I get: Invalid environment staging (ArgumentError) from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:299:in `parse'' from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:861:in `each_source'' from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:858:in `each'' from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:858:in `each_source'' from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:292:in `parse'' from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:291:in `each'' from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:291:in `parse'' from /usr/lib/ruby/site_ruby/1.8/puppet.rb:220:in `parse_config'' from /usr/sbin/puppetd:269 If I simply change the environment name to "development", everything works. But no other name works. I understand production/development/testing are encouraged as environment names for community consistency, but I was under the impression we could still choose any environment name we wanted? johnn --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Ohad Levy
2008-Jun-25 16:43 UTC
[Puppet Users] Re: error: Invalid environment staging (ArgumentError)
Add environments = staging to your main section. Ohad On 6/25/08, Johnny Tan <linuxweb@gmail.com> wrote:> > I''m running puppet 0.24.4 on both server & client. > > My puppet server config has this: > > [main] > environment = production > environments = production,staging > > [production] > manifest = /etc/puppet/production/manifests/site.pp > modulepath = /etc/puppet/production/modules > > [staging] > manifest = /etc/puppet/staging/manifests/site.pp > modulepath = /etc/puppet/staging/modules > > > My client config has this: > > [main] > environment = staging > > => > When I run puppet either on the command-line or via init.d, > I get: > > Invalid environment staging (ArgumentError) > from > /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:299:in > `parse'' > from > /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:861:in > `each_source'' > from > /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:858:in > `each'' > from > /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:858:in > `each_source'' > from > /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:292:in > `parse'' > from > /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:291:in > `each'' > from > /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:291:in > `parse'' > from /usr/lib/ruby/site_ruby/1.8/puppet.rb:220:in > `parse_config'' > from /usr/sbin/puppetd:269 > > > If I simply change the environment name to "development", > everything works. But no other name works. I understand > production/development/testing are encouraged as environment > names for community consistency, but I was under the > impression we could still choose any environment name we wanted? > > johnn > > > >-- Sent from Google Mail for mobile | mobile.google.com --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Ohad Levy
2008-Jun-25 16:46 UTC
[Puppet Users] Re: error: Invalid environment staging (ArgumentError)
On the client of course.. On 6/26/08, Ohad Levy <ohadlevy@gmail.com> wrote:> Add environments = staging to your main section. > > Ohad > > On 6/25/08, Johnny Tan <linuxweb@gmail.com> wrote: >> >> I''m running puppet 0.24.4 on both server & client. >> >> My puppet server config has this: >> >> [main] >> environment = production >> environments = production,staging >> >> [production] >> manifest = /etc/puppet/production/manifests/site.pp >> modulepath = /etc/puppet/production/modules >> >> [staging] >> manifest = /etc/puppet/staging/manifests/site.pp >> modulepath = /etc/puppet/staging/modules >> >> >> My client config has this: >> >> [main] >> environment = staging >> >> =>> >> When I run puppet either on the command-line or via init.d, >> I get: >> >> Invalid environment staging (ArgumentError) >> from >> /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:299:in >> `parse'' >> from >> /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:861:in >> `each_source'' >> from >> /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:858:in >> `each'' >> from >> /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:858:in >> `each_source'' >> from >> /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:292:in >> `parse'' >> from >> /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:291:in >> `each'' >> from >> /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:291:in >> `parse'' >> from /usr/lib/ruby/site_ruby/1.8/puppet.rb:220:in >> `parse_config'' >> from /usr/sbin/puppetd:269 >> >> >> If I simply change the environment name to "development", >> everything works. But no other name works. I understand >> production/development/testing are encouraged as environment >> names for community consistency, but I was under the >> impression we could still choose any environment name we wanted? >> >> johnn >> >> >> >> > > -- > Sent from Google Mail for mobile | mobile.google.com >--~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Johnny Tan
2008-Jun-25 17:45 UTC
[Puppet Users] Re: error: Invalid environment staging (ArgumentError)
Oh man... this is not at all clear from the wiki page: http://reductivelabs.com/trac/puppet/wiki/UsingMultipleEnvironments I went ahead and updated it, although my wording is probably poor. Anywayz, thanks Ohad. This worked. johnn Ohad Levy wrote:> Add environments = staging to your main section. > > Ohad > > On 6/25/08, Johnny Tan <linuxweb@gmail.com> wrote: >> I''m running puppet 0.24.4 on both server & client. >> >> My puppet server config has this: >> >> [main] >> environment = production >> environments = production,staging >> >> [production] >> manifest = /etc/puppet/production/manifests/site.pp >> modulepath = /etc/puppet/production/modules >> >> [staging] >> manifest = /etc/puppet/staging/manifests/site.pp >> modulepath = /etc/puppet/staging/modules >> >> >> My client config has this: >> >> [main] >> environment = staging >> >> =>> >> When I run puppet either on the command-line or via init.d, >> I get: >> >> Invalid environment staging (ArgumentError) >> from >> /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:299:in >> `parse'' >> from >> /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:861:in >> `each_source'' >> from >> /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:858:in >> `each'' >> from >> /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:858:in >> `each_source'' >> from >> /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:292:in >> `parse'' >> from >> /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:291:in >> `each'' >> from >> /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:291:in >> `parse'' >> from /usr/lib/ruby/site_ruby/1.8/puppet.rb:220:in >> `parse_config'' >> from /usr/sbin/puppetd:269 >> >> >> If I simply change the environment name to "development", >> everything works. But no other name works. I understand >> production/development/testing are encouraged as environment >> names for community consistency, but I was under the >> impression we could still choose any environment name we wanted? >> >> johnn >> >--~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Evan Hisey
2008-Jun-25 18:46 UTC
[Puppet Users] Re: error: Invalid environment staging (ArgumentError)
On Wed, Jun 25, 2008 at 12:45 PM, Johnny Tan <linuxweb@gmail.com> wrote:> > Oh man... this is not at all clear from the wiki page: > > http://reductivelabs.com/trac/puppet/wiki/UsingMultipleEnvironments > > I went ahead and updated it, although my wording is probably > poor. > > Anywayz, thanks Ohad. This worked. > > johnnI cleaned up you edit for you. You had it about right, just fixed the wiki markup and expanded the example a bit. Evan --~--~---------~--~----~------------~-------~--~----~ 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-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---