12 lines
377 B
Puppet
12 lines
377 B
Puppet
# 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; }
|
|
}
|