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 those involved in the other thread for not replying, but > thank you for your feedback. I ended up doing what Pablo F suggested, > which is to run a puppetmasterd instance as a user, that way I use a > copy of the /var/lib/puppet directory and the certificates work fine.
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`. > Glenn, I like the hiera idea (currently I'm using extlookup) but I think > I would run into the same problem. In some of my erb templates, settings > are set depending on the environment. For example, in my.cnf (for > MySQL), we set the innodb buffer pool size to different sizes depending > on the environment. How would I set specific settings depending on the > environment here? > > Cheers > Gonzalo Hiera[2] is meant to solve this. You might have staging.yaml and production.yaml that specify values for mysql_innodb_buffer_pool_size. In your code you could have $innodb_buffer_pool_size = hiera('mysql_innodb_buffer_pool_size') and then use <%= innodb_buffer_pool_size %> in a template for your my.cnf. -g [1] - http://docs.puppetlabs.com/guides/environment.html [2] - https://github.com/puppetlabs/hiera-puppet/blob/master/README.md -- Garrett Honeycutt 206.414.8658 http://puppetlabs.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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.