]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
install munin-async on wheezy hosts
authorPeter Palfrader <peter@palfrader.org>
Fri, 31 May 2013 09:34:53 +0000 (11:34 +0200)
committerPeter Palfrader <peter@palfrader.org>
Fri, 31 May 2013 09:35:03 +0000 (11:35 +0200)
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',
                }
        }
 }