summaryrefslogtreecommitdiff
path: root/manifests/file
diff options
context:
space:
mode:
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}"
+ }
+ }
+}
+
+