- $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")
-
- include munin-node
- include sudo
- include ssh
- include debian-org
- include monit
- include apt-keys
- include ntp
- include ssl
-
- include motd
-
- case $hostname {
- finzi,fano,fasch,field: { include kfreebsd }
- }
-
- case $smartarraycontroller {
- "true": { include debian-proliant }
- }
- case $kvmdomain {
- "true": { package { acpid: ensure => installed } }
- }
- case $mptraid {
- "true": { include "raidmpt" }
- }
-
- case $mta {
- "exim4": {
- case extractnodeinfo($nodeinfo, 'heavy_exim') {
- 'true': { include exim::mx }
- default: { include exim }
- }
- }
- }
-
- case extractnodeinfo($nodeinfo, 'muninmaster') {
- true: { include munin-node::master }
- }
-
- case extractnodeinfo($nodeinfo, 'nagiosmaster') {
- true: { include nagios::server }
- default: { include nagios::client }
- }
-
- case $apache2 {
- "true": {
- case extractnodeinfo($nodeinfo, 'apache2_security_mirror') {
- true: { include apache2::security_mirror }
- default: { include apache2 }
- }
- }
- }
-
- case extractnodeinfo($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 }
- }
-
- case $hostname {
- cilea,merikanto,sibelius: {}
- default: {
- case $kernel {
- Linux: {
- include ferm
- }
- }
- }
- }
- case $brokenhosts {
- "true": { include hosts }
- }
- case $hoster {
- "ubcece", "darmstadt", "ftcollins", "grnet": { include resolv }
- }
- case $portforwarder_user_exists {
- "true": { include portforwarder }
- }
- include samhain
+ include site
+ include munin
+ include syslog_ng
+ include sudo
+ include ssh
+ include debian_org
+ include monit
+ include time
+ include ssl
+ include hardware
+ include nagios::client
+ include resolv
+ include roles
+ include motd
+ include unbound
+ include bacula::client
+ include autofs
+ include dsa_lvm
+ include grub
+ include multipath
+ include popcon
+ include portforwarder
+ include postgres
+ include haveged
+ include huge_mem
+ include tcp_bbr
+
+ if $::lsbdistcodename == squeeze {
+ include roles::udldap::client
+ } else {
+ include roles::pubsub::client
+ class { 'roles::udldap::client':
+ ensure => absent
+ }
+ }
+
+ if $::hostname in [byrd,clementi,czerny,bm-bl1,bm-bl2,bm-bl3,bm-bl4,bm-bl5,bm-bl6,bm-bl7,bm-bl8,bm-bl9,bm-bl10,bm-bl11,bm-bl12,bm-bl13,bm-bl14,csail-node01,csail-node02,grnet-node01,grnet-node02,ubc-enc2bl01,ubc-enc2bl02,ubc-enc2bl09,ubc-enc2bl10,conova-node01,conova-node02] {
+ include ganeti2
+ }
+
+ if $::kernel == 'Linux' {
+ include linux
+ include acpi
+ }
+
+ if $::mta == 'exim4' {
+ if getfromhash($site::nodeinfo, 'heavy_exim') {
+ include exim::mx
+ } else {
+ include exim
+ }
+ } elsif $::mta == 'postfix' {
+ include postfix
+ } else {
+ include exim
+ }
+
+ if $::apache2 {
+ include apache2
+ }
+
+ if $::hostname in [geo1,geo2,geo3] {
+ include named::geodns
+ }
+
+ if $::hostname in [buxtehude,milanollo,lw01,lw02,lw03,lw04,lw09,lw10,senfter,gretchaninov,sibelius] {
+ include nfs_server
+ }
+
+ if $::brokenhosts {
+ include hosts
+ }
+
+ if $::samhain {
+ include samhain
+ }
+
+ if $::hostname in [geo3,wieck] {
+ include debian_org::radvd
+ }
+
+ if $::spamd {
+ munin::check { 'spamassassin': }
+ }
+
+ if $::hostname == 'pkgmirror-csail' {
+ include varnish
+ }