Skip to content

Instantly share code, notes, and snippets.

@maxmanders
Created September 11, 2012 19:09
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 maxmanders/3701054 to your computer and use it in GitHub Desktop.
Save maxmanders/3701054 to your computer and use it in GitHub Desktop.
name "base"
description "Base Role - All Nodes"
recipies = [
'"recipe[sudo]"',
'"recipe[apt]"',
'"recipe[git]"',
'"recipe[build-essential]"',
'"recipe[vim]"'
]
if Chef::Config[:solo]
recipies.unshift('"[users-solo]"')
else
recipies.unshift('"[users::sysadmins]"')
end
recipiesList = recipe.map! { |recipe| "\"#{recipe}\"" }.join(",")
run_list(recipies)
override_attributes(
:authorization => {
:sudo => {
:users => ["ubuntu", "vagrant"],
:passwordless => true
}
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment