}
# Munin configuration
- munin_node { "$hostname":
- port => '4900',
+ $munin = hiera('nodo::host::use_munin', True)
+ if $munin == true {
+ munin_node { "$hostname":
+ port => '4900',
+ }
}
}
include smartmontools
# SMART monitoring
- include munin::plugins::smart
- munin::plugin { "smart_sda":
- ensure => "smart_",
- config => "user root\ngroup disk",
+ $munin = hiera('nodo::host::use_munin', True)
+ if $munin == true {
+ include munin::plugins::smart
+ munin::plugin { 'smart_sda':
+ ensure => 'smart_',
+ config => "user root\ngroup disk",
+ }
}
# Removable media folder