-
-
Save apsoto/858903 to your computer and use it in GitHub Desktop.
a sample base chef role
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
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