Linting
[mirror/dsa-puppet.git] / modules / munin / manifests / init.pp
index 8258f9b..8730f53 100644 (file)
@@ -62,18 +62,26 @@ class munin {
 
        @@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',
                }
        }
 }