Skip to content

Instantly share code, notes, and snippets.

@morgoth
Created October 28, 2010 09:21
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 morgoth/650985 to your computer and use it in GitHub Desktop.
Save morgoth/650985 to your computer and use it in GitHub Desktop.
# attributes/default.rb
default[:my_attribute] = false
# on some machine:
chef-client -j example.json
# example.json
{"run_list": "recipe[example]", "my_attribute": true}
value used in recipe is now true
# after a while, on the same machine (node is existing):
chef-client -j example.json
# example.json
{"run_list": "recipe[example]"}
question: what is the value of my_attribute used in recipe?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment