aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorAndreas <andreas@immerda.ch>2009-11-18 19:22:01 +0100
committerMicah Anderson <micah@riseup.net>2010-09-02 18:13:55 -0400
commit2a679f8fa07e050180c49a58012c9783971f5aa1 (patch)
treef69533a47bef9a589a0d9e56679d0743cbec3c6b /manifests
parent72dcd723629eba4b3ac4fd7d89303d4a110ad356 (diff)
downloadpuppet-common-2a679f8fa07e050180c49a58012c9783971f5aa1.tar.gz
puppet-common-2a679f8fa07e050180c49a58012c9783971f5aa1.tar.bz2
remove link if absent
Diffstat (limited to 'manifests')
-rw-r--r--manifests/defines/link.pp6
1 files changed, 6 insertions, 0 deletions
diff --git a/manifests/defines/link.pp b/manifests/defines/link.pp
index 3325e4b..7bae08a 100644
--- a/manifests/defines/link.pp
+++ b/manifests/defines/link.pp
@@ -15,6 +15,12 @@ define link(
ensure => link,
target => "${target}"
}
+ }else{
+ file { "$name":
+ ensure => absent,
+ recurse => true,
+ force => true
+ }
}
}