diff options
Diffstat (limited to 'manifests/file')
-rw-r--r-- | manifests/file/link.pp | 12 |
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}" + } + } +} + + |