Skip to content

Instantly share code, notes, and snippets.

@veszig
Created April 25, 2010 16:24
Show Gist options
  • Save veszig/378516 to your computer and use it in GitHub Desktop.
Save veszig/378516 to your computer and use it in GitHub Desktop.
name "gentoo_base"
description "Base role applied to all gentoo systems."
run_list(
"recipe[gentoo]",
"recipe[gentoo::packages]",
"recipe[ruby]",
"recipe[hosts]",
"recipe[logrotate]",
"recipe[iptables::ulogd]",
"recipe[iptables]",
"recipe[nagios::nrpe]",
"recipe[monit]",
"recipe[chef::client]",
"recipe[syslog-ng]",
"recipe[vixie-cron]",
"recipe[msmtp]",
"recipe[sudo]",
"recipe[openssh]",
"recipe[openssh::known_hosts]",
"recipe[openntpd]",
"recipe[net-snmp]",
"recipe[vim]",
"recipe[bash-completion]",
"recipe[users::root]",
"recipe[users::veszig]"
)
default_attributes(
"chef" => {
"client" => {
"server_url" => "https://chef.done.hu:4443"
}
},
"gentoo" => {
"accept_licenses" => "*",
"elog_mailuri" => "foo+emerge@done.hu mail.done.hu",
"rsync_mirror" => "rsync://rsync.europe.gentoo.org/gentoo-portage",
"distfile_mirrors" => %w(http://gentoo.inf.elte.hu/ http://gentoo.inode.at/ http://gentoo.osuosl.org/),
"hwtimezone" => "local",
"timezone" => "Europe/Budapest",
"locales" => ["en_US ISO-8859-1", "en_US.UTF-8 UTF-8", "hu_HU ISO-8859-2", "hu_HU.UTF-8 UTF-8"]
},
"monit" => {
"mailservers" => ["mail.done.hu", "mx2.done.hu"],
"alert_mail_to" => "foo+monit@done.hu"
},
"msmtp" => {
"host" => "mail.done.hu",
"user" => "foo@done.hu",
"password" => "secret"
},
"ntpd" => {
"pool" => "hu.pool.ntp.org"
},
"password" => {
"directory" => "/root/private"
},
"snmpd" => {
"monitoring_ips" => %w(127.0.0.1 192.168.1.200),
"syscontact" => "Gabor VESZI <redacted@done.hu>"
},
"sshd" => {
"allow_users" => %w(veszig)
}
)
# override_attributes()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment