- $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 motd
- include samhain
-
- case $smartarraycontroller {
- "true": { include debian-proliant }
- }
- case $kvmdomain {
- "true": { package { acpid: ensure => installed } }
- }
-
- 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 }
- }
-
- case $hostname {
- logtest01,geo1,geo2,geo3: { include ferm }
- }
-
- case $brokenhosts {
- "true": { include hosts }
- }
- case $hoster {
- "ubcece", "darmstadt", "ftcollins", "grnet": { include resolv }
- }
- case $portforwarder_user_exists {
- "true": { include portforwarder }
- }
+ include site
+ include munin
+ include syslog-ng
+ include sudo
+ include ssh
+ include debian-org
+ include monit
+ include ntp
+ include ntpdate
+ include ssl
+ include hardware
+ include nagios::client
+ include resolv
+ include roles
+ include motd
+ include unbound
+ include bacula::client
+
+ if $::hostname in [pasquini,tristano,bertali,boito,byrd,clementi,czerny,rossini,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] {
+ include ganeti2
+ }
+
+ if $::hostname in [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] {
+ include multipath
+ }
+
+ if $::hostname == 'dinis' {
+ include bacula::director
+ } else {
+ package { 'bacula-console':
+ ensure => purged;
+ }
+
+ file { '/etc/bacula/bconsole.conf':
+ ensure => absent;
+ }
+ }
+
+ if $::hostname == 'beethoven' {
+ include bacula::storage
+ }
+
+ if $::kernel == Linux {
+ include linux
+ if $::kvmdomain {
+ include acpi
+ }
+ } elsif $::kernel == 'GNU/kFreeBSD' {
+ include kfreebsd
+ }
+
+ 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 [ravel,senfl,orff,draghi,diamond,rietz] {
+ include named::authoritative
+ } elsif $::hostname in [geo1,geo2,geo3] {
+ include named::geodns
+ }
+
+ if $::hostname in [diabelli,nono,spohr] {
+ include dacs
+ }
+
+ if $::hostname in [beethoven,spohr,stabile,beach,glinka,milanollo] {
+ include nfs-server
+ }
+
+ if $::hostname == 'vieuxtemps' {
+ include varnish
+ }
+
+ if $::brokenhosts {
+ include hosts
+ }
+
+ if $::portforwarder_user_exists {
+ include portforwarder
+ }
+
+ if $::samhain {
+ include samhain
+ }
+
+ if $::hostname in [chopin,geo3,soler,wieck] {
+ include debian-org::radvd
+ }
+
+ if ($::postgres) {
+ include postgres
+ }
+
+ if $::spamd {
+ munin::check { 'spamassassin': }
+ }
+
+ if $::hoster {
+ if $::hoster in [ynic] {
+ include lldp
+ }
+ }