Skip to content

Instantly share code, notes, and snippets.

@maxmanders
Created September 11, 2012 21:14
Show Gist options
  • Save maxmanders/3702109 to your computer and use it in GitHub Desktop.
Save maxmanders/3702109 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("recipe[users-solo]")
else
recipies.unshift("recipe[users::sysadmins]")
end
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