# Fully capable node able to host other nodes class nodo::host inherits nodo { include initramfs include modprobe include firewire include sysctl include utils::physical include resolver class { 'syslog-ng': } monkeysphere_host { "${::hostname}": } # Firewall class { 'firewall': } # Vserver if $::lsbdistcodename == 'squeeze' { $vserver = hiera('nodo::host::use_vserver', True) if $vserver == true { class { 'vserver::host': vdirbase => "/var/vservers", } } } # Time $ntpdate = hiera('nodo::host::ntpdate', True) case $ntpdate { false: { class { 'timezone': } } default: { class { 'ntpdate': } } } # Backup backupninja::sys { "sys": ensure => present, } # Monitoring if !defined('monitor') { class { 'monitor': type => 'host', use_nagios => hiera('nodo::host::use_nagios', True), } } # Munin configuration $munin = hiera('nodo::host::use_munin', True) if $munin == true { munin_node { "$hostname": port => '4900', } } }