From: Stephen Gran Date: Sun, 22 Apr 2012 19:36:46 +0000 (+0100) Subject: target is preferred X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=0a6e92d24a867ec0ee2a0bbe22f9d7c540f4e3fd;p=mirror%2Fdsa-puppet.git target is preferred Signed-off-by: Stephen Gran --- diff --git a/modules/munin/manifests/check.pp b/modules/munin/manifests/check.pp index ace6bb52e..b122385b7 100644 --- a/modules/munin/manifests/check.pp +++ b/modules/munin/manifests/check.pp @@ -9,13 +9,14 @@ define munin::check($ensure = present, $script = undef) { } $link_target = $ensure ? { - present => "/usr/share/munin/plugins/${link}", + present => link, absent => absent, default => fail ( "Unknown ensure value: '$ensure'" ), } file { "/etc/munin/plugins/${name}": ensure => $link_target, + target => "/usr/share/munin/plugins/${link}", require => Package['munin-node'], notify => Service['munin-node'], }