Ask Your Question

how many puppet environment

asked 2018-07-31 15:00:34 -0500

romgo gravatar image


I'm building a new puppet platform for my company. Currently when we create a new application we deliver for developpers different VM which will be use for different purposes such as :

  • production
  • preproduction
  • uat
  • integration
  • dev

We plan to reflect this in puppet configuration by creating those environments and point each vm to the proper environment.

For me this seems way too much puppet environment. What do you think or usually do ?


edit retag flag offensive close merge delete


I would probably have the 'prod/test/dev' order mentioned below for your puppet environments, and have a different role/node type for each VM defined for each in the above list - that way your puppet code is consolidated. Maintaining multiple branches/forks that are divergent is not fun

DarylW gravatar imageDarylW ( 2018-09-06 11:23:40 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-09-06 08:02:01 -0500

Pankaj Shukla gravatar image

It is good to create a different environment as per the company need. But per my understanding, you should create production, Development and test.

1- On server run below command which will create above three modules.

mkdir -p /etc/puppet/environments/{production,development,test}/{manifest,modules}

1- On client mentions environment as below under agent in /etc/puppet/puppet.conf configuration file.

[agent] environment=production

edit flag offensive delete link more


It is useful to create each of those different 'environments' as tiers of data in your hiera config, but don't diverge each environment off of branches, that allows you to actually work in a reasonable git model with promoting changes across environments, while still keeping your configuration apart

DarylW gravatar imageDarylW ( 2018-09-06 11:21:27 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-07-31 15:00:34 -0500

Seen: 81 times

Last updated: Sep 06