summaryrefslogtreecommitdiff
path: root/manifests/file
diff options
context:
space:
mode:
authorAndreas <andreas@immerda.ch>2009-11-09 17:59:11 +0100
committerAndreas <andreas@immerda.ch>2009-11-09 17:59:11 +0100
commitaa28a3702b47856156a6e93d21975d9552f07315 (patch)
treee79ab8a77211cf11de07da112c0af024cfaa5c1b /manifests/file
parentf7464c389e75a3b97eeb86a1be061f186149431f (diff)
apache::link implementation
Diffstat (limited to 'manifests/file')
-rw-r--r--manifests/file/link.pp12
1 files changed, 12 insertions, 0 deletions
diff --git a/manifests/file/link.pp b/manifests/file/link.pp
new file mode 100644
index 0000000..206bce5
--- /dev/null
+++ b/manifests/file/link.pp
@@ -0,0 +1,12 @@
+define apache::file::link(
+ $target = 'absent'
+) {
+ if ($target != 'absent') {
+ file { "$name":
+ ensure => link,
+ target => "${target}"
+ }
+ }
+}
+
+