class nodo::base::vserver { class { 'ntp::timezone': } class { 'syslog-ng::vserver': } backupninja::sys { "sys": ensure => present, partitions => false, hardware => false, dosfdisk => false, dohwinfo => false, } $hosting_type = hiera('nodo::vserver::hosting_type', 'direct') case $hosting_type { "direct": { # Apply munin and monkeysphere configuration for # for directly hosted nodes. Nodo::Subsystem::Monitor::Munin <<| title == $::hostname |>> Nodo::Subsystem::Monkeysphere <<| title == $::hostname |>> } "third-party": { # Apply munin and monkeysphere configuration for # nodes hosted by third-parties. nodo::subsystem::monitor::munin { "${::hostname}": } monkeysphere_host { "${::hostname}": port => hiera('nodo::vserver::ssh_port', '22'), } # Nagios configuration class { 'nodo::subsystem::monitor': } } } }