Skip to content

Instantly share code, notes, and snippets.

@riywo
Last active December 17, 2015 13:19
Show Gist options
  • Save riywo/5616653 to your computer and use it in GitHub Desktop.
Save riywo/5616653 to your computer and use it in GitHub Desktop.
chef attribute override
default["recipeA"]["name"] = "nameA"
default["recipeA"]["path"] = "/tmp/#{node["recipeA"]["name"]}"
default["recipeA"]["name"] = "nameB"
# node["recipeA"]["name"] = "nameB"
# node["recipeA"]["path"] = "/tmp/nameA"
node.default["recipeA"]["name"] = "nameB"
include_recipe "recipeA"
# node["recipeA"]["name"] = "nameB"
# node["recipeA"]["path"] = "/tmp/nameA"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment