@@munin::master-per-node {
$::fqdn:
- ipaddress => $::ipaddress,
+ ipaddress => $::ipaddress,
munin_async => $::munin_async,
;
}
- if $munin_async and $munin_async == 'true' {
- file { '/etc/ssh/userkeys/munin-async':
- source => 'puppet:///modules/munin/munin-async-authkeys',
+ #if $::munin_async and str2bool($::munin_async) == true {
+ # file { '/etc/ssh/userkeys/munin-async':
+ # source => 'puppet:///modules/munin/munin-async-authkeys',
+ # }
+ #} else {
+ # file { '/etc/ssh/userkeys/munin-async':
+ # ensure => 'absent',
+ # }
+ #}
+ if $::lsbmajdistrelease >= 7 {
+ package { 'munin-async':
+ ensure => installed
}
- } else {
file { '/etc/ssh/userkeys/munin-async':
- ensure => 'absent',
+ source => 'puppet:///modules/munin/munin-async-authkeys',
}
}
}