node default {
$localinfo = yamlinfo('*', "/etc/puppet/modules/debian-org/misc/local.yaml")
$nodeinfo = nodeinfo($fqdn, "/etc/puppet/modules/debian-org/misc/local.yaml")
- $hoster = whohosts($nodeinfo, "/etc/puppet/modules/debian-org/misc/hoster.yaml")
- $keyinfo = allnodeinfo("sshRSAHostKey", "ipHostNumber")
- notice("hoster for ${fqdn} is ${hoster}")
-
- $mxinfo = allnodeinfo("mXRecord")
+ $allnodeinfo = allnodeinfo("sshRSAHostKey ipHostNumber", "purpose mXRecord")
+ notice( sprintf("hoster for %s is %s", $fqdn, getfromhash($nodeinfo, 'hoster', 'name') ) )
include munin-node
+ include syslog-ng
include sudo
include ssh
include debian-org
finzi,fano,fasch,field: { include kfreebsd }
}
+ case $hostname {
+ heininen: {
+ include "stunnel4"
+ stunnel4::stunnel_server {
+ "ekeyd":
+ accept => 18888,
+ connect => "127.0.0.1:8888",
+ ;
+ }
+ }
+ unger: {
+ include "stunnel4"
+ stunnel4::stunnel_client {
+ "ekeyd":
+ accept => "127.0.0.1:8888",
+ connecthost => "heininen.debian.org",
+ connectport => 18888,
+ ;
+ }
+ }
+ }
+
case $smartarraycontroller {
"true": { include debian-proliant }
}
case $kvmdomain {
- "true": { package { acpid: ensure => installed } }
+ "true": {
+ package { acpid: ensure => installed }
+ case getfromhash($nodeinfo, 'squeeze') {
+ true: { package { acpi-support-base: ensure => installed } }
+ }
+ }
}
case $mptraid {
"true": { include "raidmpt" }
case $mta {
"exim4": {
- case extractnodeinfo($nodeinfo, 'heavy_exim') {
- 'true': { include exim::mx }
+ case getfromhash($nodeinfo, 'heavy_exim') {
+ true: { include exim::mx }
default: { include exim }
}
}
}
- case extractnodeinfo($nodeinfo, 'muninmaster') {
+ case getfromhash($nodeinfo, 'puppetmaster') {
+ true: { include puppetmaster }
+ }
+
+ case getfromhash($nodeinfo, 'muninmaster') {
true: { include munin-node::master }
}
- case extractnodeinfo($nodeinfo, 'nagiosmaster') {
+ case getfromhash($nodeinfo, 'nagiosmaster') {
true: { include nagios::server }
default: { include nagios::client }
}
case $apache2 {
"true": {
- case extractnodeinfo($nodeinfo, 'apache2_security_mirror') {
+ case getfromhash($nodeinfo, 'apache2_security_mirror') {
true: { include apache2::security_mirror }
- default: { include apache2 }
}
+ case getfromhash($nodeinfo, 'apache2_www_mirror') {
+ true: { include apache2::www_mirror }
+ }
+ include apache2
}
}
- case extractnodeinfo($nodeinfo, 'buildd') {
- 'true': {
+ case $rsyncd {
+ "true": { include rsyncd-log }
+ }
+
+
+ case getfromhash($nodeinfo, 'buildd') {
+ true: {
include buildd
}
}
case $hostname {
- klecker,ravel,senfl,orff: { include named::secondary }
- geo1,geo2,geo3: { include named::geodns }
- bartok,schein,steffani,ries,franck,liszt,master: { include named::recursor }
+ klecker,ravel,senfl,orff,draghi: { include named::authoritative }
+ geo1,geo2,geo3: { include named::geodns }
+ liszt: { include named::recursor }
+ }
+ case $hostname {
+ franck,master,lobos,samosa,spohr,widor: { include unbound }
+ }
+ case getfromhash($nodeinfo, 'squeeze') {
+ true: { include unbound }
+ }
+ include resolv
+
+ case $kernel {
+ Linux: {
+ include ferm
+ include ferm::per-host
+ case $rsyncd {
+ "true": { include ferm::rsync }
+ }
+ }
}
case $hostname {
- cilea,merikanto,ravel,sibelius: {}
- default: {
- case $kernel {
- Linux: {
- include ferm
- }
- }
- }
+ beethoven,ravel,spohr,stabile: {
+ include nfs-server
+ }
}
- include ferm::per-host
case $brokenhosts {
"true": { include hosts }
}
- case $hoster {
- "ubcece", "darmstadt", "ftcollins", "grnet": { include resolv }
- }
case $portforwarder_user_exists {
"true": { include portforwarder }
}
+
include samhain
+
+ case $hostname {
+ byrd,schuetz,tchaikovsky: {
+ include krb
+ }
+ draghi,quantz: {
+ include krb
+ include afs
+ }
+ lamb,locke,rautavaara,rietz: {
+ include krb
+ include afs::server
+ }
+ }
+
+ case $hostname {
+ chopin,geo3,soler,wieck: {
+ include debian-radvd
+ }
+ }
}
+
+# vim:set et:
+# vim:set sts=4 ts=4:
+# vim:set shiftwidth=4: