Skip to content

Instantly share code, notes, and snippets.

@apsoto
Forked from jtimberman/base.rb
Created March 7, 2011 18:11
Show Gist options
  • Save apsoto/858903 to your computer and use it in GitHub Desktop.
Save apsoto/858903 to your computer and use it in GitHub Desktop.
a sample base chef role
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"]
}
)
@itjuan
Copy link

itjuan commented Apr 7, 2016

Thanks bud!!

I was trying to run my roles on Ruby Format with Chef-Zero. For the records... chef-zero only supports roles on JSON format

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment