Ask Your Question

What's a good name for the fact if the server is production, staging or lab?

asked 2017-01-09 06:05:46 -0600

kasimon gravatar image

updated 2017-01-09 06:08:01 -0600

While reimplementing my enc, I stumbled upon the fact that I cannot seem to find a good name for the fact that denotes wether a server is production, staging or lab. Usually one would use 'environment' for this, but this already has a technical meaning in puppet, so I don't want to reuse the terminoligy. The best thing we came up till now is '$production_level', but that feels a little clumsy. As I want to encode this fact into the certificate, the best would be if it was one of the predefined puppet certificate oids ([]), but none of them fits well enough, so I'll probably use something like 'role=prod:mywebserverrole' and split them in site.pp.

Did I overlook an obvious solution?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-01-09 07:42:59 -0600

i actually create a fact called env - this maps to a puppet / git environment /branch - can also create a test git branch and run puppet on host e.g. FACTER_testenv puppet agent -t ...

edit flag offensive delete link more


in a puppetconf 2013 talk from some folks from espn, they had facts named espn_environment, etc... to specify/namespace the things they were directly using

DarylW gravatar imageDarylW ( 2017-01-09 09:46:37 -0600 )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: 2017-01-09 06:05:46 -0600

Seen: 32 times

Last updated: Jan 09 '17