Created
March 7, 2011 17:59
-
-
Save jtimberman/858890 to your computer and use it in GitHub Desktop.
an example roles/base.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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