I'm not following you here. It does not do this. Our git commit hook finds only what has changed, and then calculates what needs to be updated based on that. So if you edit an environment file, only the environment file is updated, if you edit a node file, only the node file is updated. The different here is that we don't store nodes as a single JSON file, we use the standard chef git repo structure of node, env, cookbook, client etc files.
So your commit hook script would be exactly what I was looking for. +1
for putting it on github :-)
I'm also wondering if other's haven't had the same requirements and
maybe built something similar already?
Yes, I'm sure this is a common requirement and must be written over and over in many shops. I'll upload what I have to github and wait for someone to shoot it down with something far simpler, quicker, more efficient and more elegant :-)
Archive powered by MHonArc 2.6.16.