- From: Andrea Campi <
>
- To:
- Subject: [chef] Re: Re: Re: Re: Re: knife diff and JSON files in environments/ & roles/
- Date: Tue, 21 Aug 2012 07:13:16 +0200
This thread reminded me I never posted my plugins for dealing with
data bags, nodes etc in JSON form while keeping sanity.
Here are a few of my plugins:
https://github.com/andreacampi/knife-export-plugins
With these I'm able to close the loop and do stuff like:
* notice cookbooks that unexpectedly add normal attributes on nodes
(there are too many of them! we should work to fix them);
* while developing cookbooks and roles, sometimes we make changes
directly via "knife node edit". Sure, it's not the best way, but it
happens. Now a "knife node export all" gets everything back into git;
* and more.
I don't have a "knife environment export all" but it should be trivial.
I do have a plugin to fix "knife environment show -Fj", since it has
the annoying habit of showing pinned cookbooks in a random order.
Hope it's useful to someone else who has a "JSON-heavy" workflow.
Andrea
Archive powered by MHonArc 2.6.16.