Within a chef client run? You could do something like… last = Chef::Node.load(node.name) if last.default[‘some-attribute’] != node.default[‘some-attribute’] # do something end This only works is you call Chef::Node.load before any recipe does a "node.save”. Substitute “override” for “default” if you’re looking at overrides. If external to a client run and you are loading node attributes via role/cookbook/data_bag backed by git, you could use "knife node show” and compare that to what the new code would load and then execute rake. Hope this helps. Joe On Mar 18, 2014, at 9:06 AM, Stewart, Curtis <
">
> wrote:
|
Archive powered by MHonArc 2.6.16.