Extract specific Chef environment from a master template

This is the follow-up article for “Merging Chef JSONs into 1 template“. We are now able to merge environments and role files into 1 master template to manage, how are we gonna extract an environment or a role out of that template.

Recursion rule the world! The extraction code is pretty small compare to the merging script.

Script is here: https://github.com/hlx98007/deployment-scripts/blob/master/chef_scripts/gen.py

Leave a comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.