Skip to content

Instantly share code, notes, and snippets.

@gregsymons
Created May 29, 2013 00:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gregsymons/5667058 to your computer and use it in GitHub Desktop.
Save gregsymons/5667058 to your computer and use it in GitHub Desktop.
Chef: Merging normal attributes from a local JSON file
require 'chef/mixin/deep_merge'
require 'json'
node.normal = Chef::Mixin::DeepMerge.merge(node.normal, JSON.load(File.read('/my/custom/node/attributes.json')))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment