Re: [Puppet Users] Staging environment

2012-09-21 Thread jcbollinger
I seem to be missing something here. The OP's problem is that part of what he wants to test is his code's environment-dependent behavior. I maintain that no solution requiring a different environment to be declared than the one he wants to test can in fact test such behavior adequately. I do

Re: [Puppet Users] Staging environment

2012-09-20 Thread Garrett Honeycutt
On 9/19/12 10:43 PM, Gonzalo Servat wrote: > On Thu, Sep 20, 2012 at 3:37 PM, Garrett Honeycutt > mailto:garr...@puppetlabs.com>> wrote: > > No need at all to use a different puppet master, you could just use > environments[1]. When you want to test a system again a different > environ

Re: [Puppet Users] Staging environment

2012-09-20 Thread Gonzalo Servat
On Thu, Sep 20, 2012 at 3:37 PM, Garrett Honeycutt wrote: > Hiera[2] is meant to solve this. You might have staging.yaml and > production.yaml that specify values for mysql_innodb_buffer_pool_size. > Another scenario I've found is that we also add certain users if $::environment is production, an

Re: [Puppet Users] Staging environment

2012-09-19 Thread Gonzalo Servat
On Thu, Sep 20, 2012 at 3:37 PM, Garrett Honeycutt wrote: > No need at all to use a different puppet master, you could just use > environments[1]. When you want to test a system again a different > environment, staging in this example, you can run `puppet agent -t > --environment=staging`. > Yep,

Re: [Puppet Users] Staging environment

2012-09-19 Thread Garrett Honeycutt
On 9/19/12 4:53 PM, Gonzalo Servat wrote: > Hi All, > > Thanks for your feedback. While writing the original email, the subject > sounded familiar and that's because I had written about it in the past: > > https://groups.google.com/d/topic/puppet-users/twLhIwsCRu4/discussion > > Apologies to

Re: [Puppet Users] Staging environment

2012-09-19 Thread Gonzalo Servat
Hi All, Thanks for your feedback. While writing the original email, the subject sounded familiar and that's because I had written about it in the past: https://groups.google.com/d/topic/puppet-users/twLhIwsCRu4/discussion Apologies to those involved in the other thread for not replying, but

[Puppet Users] Staging environment

2012-09-19 Thread Glenn Poston
Use heira. Heira can load a config file based on the environment. Setting this up is as simple as creating a hiera definition such as... (environment).yaml ... And then creating the following files: production.yaml and staging.yaml that contain your environment specific configs. Install the

Re: [Puppet Users] Staging environment

2012-09-19 Thread Luke Bigum
On 19/09/12 06:11, Gonzalo Servat wrote: Hi All, In our environment, we use the $::environment variable extensively to determine if the host should have one set of mounts (e.g. production) or a different set of mounts (e.g. qa). This is just one example, but there are many others where the $:

[Puppet Users] Staging environment

2012-09-18 Thread Gonzalo Servat
Hi All, In our environment, we use the $::environment variable extensively to determine if the host should have one set of mounts (e.g. production) or a different set of mounts (e.g. qa). This is just one example, but there are many others where the $::environment variable comes into play. The pr

[Puppet Users] Staging environment for infra with 20+ unique servers

2012-01-15 Thread Walter Heck
Hello, one of my clients has a server infrastructure with 20+ servers that are all unique. Currently it runs without a puppet staging environment which makes me sleep badly at night :) The problem is: the client doesn't have the resources to run 20 staging servers as well, and the overhead of sett