class nodo::subsystem::monitor::master { file { '/etc/nagios-plugins/check_rbl.ini': ensure => present, owner => root, group => root, source => 'puppet:///modules/nodo/etc/nagios-plugins/check_rbl.ini', require => Package['nagios'], } $main = hiera('nodo::role::master::main', false) if $main == true { $manage = 'present' $service = 'running' } else { $manage = 'absent' $service = 'stopped' } # # See https://raymii.org/s/tutorials/Munin_optimalization_on_Debian.html # https://munin.readthedocs.org/en/latest/master/rrdcached.html # http://kuszelas.eu/~eyck/log/Howto/Munin.Rrdcached.html # package { 'rrdcached': ensure => $manage, } file { '/etc/default/rrdcached': ensure => $manage, owner => root, group => root, source => 'puppet:///modules/nodo/etc/default/rrdcached', require => Package['rrdcached'], notify => Service['rrdcached'], } service { 'rrdcached': ensure => $service, require => Package['rrdcached'], } }