aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/defines/link.pp18
1 files changed, 2 insertions, 16 deletions
diff --git a/manifests/defines/link.pp b/manifests/defines/link.pp
index 7bae08a..e8e4a9f 100644
--- a/manifests/defines/link.pp
+++ b/manifests/defines/link.pp
@@ -7,20 +7,6 @@
# link { "/usr/bin/convert": target => "/usr/local/bin/convert" }
# e.g. equivalent to bash# ln -s /usr/bin/convert /usr/local/bin/convert
-define link(
- $target = 'absent'
-) {
- if ($target != 'absent') {
- file { "$name":
- ensure => link,
- target => "${target}"
- }
- }else{
- file { "$name":
- ensure => absent,
- recurse => true,
- force => true
- }
- }
+define link($target = absent) {
+ file{$name: ensure => $target; }
}
-