What methods are there to configure puppet to serve resources for multiple environments?

Posted by cclark on Server Fault See other posts from Server Fault or by cclark
Published on 2010-02-07T05:31:43Z Indexed on 2010/03/13 12:05 UTC
Read the original article Hit count: 227

Filed under:

I seem to come across two ways for using puppet in multiple environments:

1) Install a puppetmaster in each environment and only update the recipes from source control for that environment when ready to deploy the recipes in that environment.

2) Use one puppetmaster and use a variable in the puppet.conf of each client to specify the environment and then in the puppetmaster specify a different modulepath for each environment and each of those paths is updated to the branch of the recipe repository intended for that environment (e.g. dev, staging, production).

Only running one puppetmaster seems like it is one less piece of infrastructure to keep running but there is some additional complexity in the configuration.

Are there additional pros or cons to one of these methods or something which I'm missing entirely?

© Server Fault or respective owner

Related posts about puppet