]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/munin/manifests/init.pp
install munin-async on wheezy hosts
[dsa-puppet.git] / modules / munin / manifests / init.pp
index 9684a2944424c25ab09ebcf5734217c0e0cf1a73..8730f53f36349764cf8f20dfc578b756140de2db 100644 (file)
@@ -67,13 +67,21 @@ class munin {
                        ;
        }
 
-       if $::munin_async and str2bool($::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',
                }
        }
 }