Skip to content

Instantly share code, notes, and snippets.

@jtimberman
Created March 7, 2011 17:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save jtimberman/858890 to your computer and use it in GitHub Desktop.
Save jtimberman/858890 to your computer and use it in GitHub Desktop.
an example roles/base.rb
name "base"
description "Baseline configuration for all systems."
run_list(
"recipe[ohai]",
"recipe[chef-client::delete_validation]",
"recipe[chef-client]",
"recipe[zsh]",
"recipe[git]",
"recipe[users]",
"recipe[vim]",
"recipe[sudo]",
"recipe[ntp]",
"recipe[resolver]",
"recipe[lvm]",
"recipe[build-essential]",
"recipe[ruby]",
"recipe[rsyslog::client]",
"recipe[logwatch]",
"recipe[logrotate]",
"recipe[tmux]",
"recipe[man]",
"recipe[openssh]",
"recipe[rsync]",
"recipe[postfix]",
"recipe[munin::client]"
)
default_attributes(
"chef-client" => {
"server_url" => "https://api.opscode.com/organizations/ORGNAME",
"validation_client_name" => "ORGNAME-validator"
},
"authorization" => {
"sudo" => {
"groups" => ["admin", "wheel"],
"users" => ["myusername"]
}
},
"postfix" => {
"mail_type" => "client",
"mydomain" => "example.com",
"myorigin" => "example.com",
"relayhost" => "[smtp.int.example.com]",
"smtp_use_tls" => "no"
},
"resolver" => {
"nameservers" => ["10.1.1.3", "10.1.1.4"],
"search" => "int.example.com"
},
"ntp" => {
"servers" => ["time.int.example.com"]
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment