I would like to be able to extract the following information from Chef:
- current state of the node vs. planned changes
- panned changes vs state after the actual chef-client run
So far, I had the following idea:
- compare
knife node show
&&chef-client -W
(log of why-run)- however, the output is in a different format (JSON vs log), I would have to parse the log and convert it into JSON (outch?)
- compare
chef-client -W
(log of why-run) &&chef-client
(log):- here I could compare the two
What I want to achieve is some sort of change management visualized here
In a form a trimmed down version of what Chef Automate seems to offer. I`m not sure if I'm actually shooting off my whole leg here. Any pointers are welcome.