Created
May 29, 2013 00:03
-
-
Save gregsymons/5667058 to your computer and use it in GitHub Desktop.
Chef: Merging normal attributes from a local JSON file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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