diff options
Diffstat (limited to 'manifests/base/host.pp')
-rw-r--r-- | manifests/base/host.pp | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/manifests/base/host.pp b/manifests/base/host.pp new file mode 100644 index 0000000..f57aeb4 --- /dev/null +++ b/manifests/base/host.pp @@ -0,0 +1,55 @@ +# Fully capable node able to host other nodes +class nodo::base::host { + include nodo::subsystem::initramfs + include nodo::subsystem::modprobe + include nodo::subsystem::firewire + include nodo::subsystem::sysctl + include nodo::subsystem::resolver + include nodo::utils::physical + 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(Class['nodo::subsystem::monitor']) { + class { 'nodo::subsystem::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', + } + } + +} |