aboutsummaryrefslogtreecommitdiff
path: root/manifests/defines/link.pp
blob: e8e4a9fe9b8bc607b08325fd64dae9dcd3f1aba8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# common/manifests/defines/link.pp -- create a link
#
# Copyleft (C) 2009 immerdaadmin <admin@immerda.ch>
# See LICENSE for the full license granted to you.

# Usage:
# 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) {
   file{$name: ensure => $target; }
}