Skip to content

Instantly share code, notes, and snippets.

@erichelgeson
Created September 10, 2014 00:59
Show Gist options
  • Save erichelgeson/7851dcf97e35c1875275 to your computer and use it in GitHub Desktop.
Save erichelgeson/7851dcf97e35c1875275 to your computer and use it in GitHub Desktop.
# https://docs.getchef.com/essentials_node_object_deep_merge.html
$ cat test.rb
node.set['test'] = { 'a' => 'b' }
log node['test']['a']
$ chef-apply ./test.rb
Recipe: (chef-apply cookbook)::(chef-apply recipe)
* log[b] action write (up to date)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment