From 4a87e86ffd4eb2ba87e1bbc1582ed077267cb9cf Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 31 May 2013 11:34:53 +0200 Subject: [PATCH] install munin-async on wheezy hosts --- modules/munin/manifests/init.pp | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/modules/munin/manifests/init.pp b/modules/munin/manifests/init.pp index 9684a294..8730f53f 100644 --- a/modules/munin/manifests/init.pp +++ b/modules/munin/manifests/init.pp @@ -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', } } } -- 2.39.2