aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
+ }
}
}