Skip to content

Instantly share code, notes, and snippets.

@SafeAF
Last active October 23, 2015 08:55
Show Gist options
  • Save SafeAF/14967dc899e2c5a4288c to your computer and use it in GitHub Desktop.
Save SafeAF/14967dc899e2c5a4288c to your computer and use it in GitHub Desktop.
chef recipes
#For example, to use the default recipe in a role named "base", use 'ruby' in the run list and set the node[:languages[:ruby][:default_version] attribute:
{
"name": "base",
"description": "Base role is applied to all systems",
"json_class": "Chef::Role",
"default_attributes": {
},
"override_attributes": {
"languages": {
"ruby": {
"default_version": "1.8"
}
}
},
"chef_type": "role",
"run_list": [
"recipe[ruby]"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment