forked from ungleich-public/cdist
0d04f0ba34
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
60 lines
1.3 KiB
Text
60 lines
1.3 KiB
Text
cdist-type__link(7)
|
|
===================
|
|
Nico Schottelius <nico-cdist--@--schottelius.org>
|
|
|
|
|
|
NAME
|
|
----
|
|
cdist-type__link - Manage links (hard and symbolic)
|
|
|
|
|
|
DESCRIPTION
|
|
-----------
|
|
This cdist type allows you to manage hard and symbolic links.
|
|
The given object id is the destination for the link.
|
|
|
|
|
|
REQUIRED PARAMETERS
|
|
-------------------
|
|
source::
|
|
Specifies the link source.
|
|
|
|
type::
|
|
Specifies the link type: Either hard or symoblic.
|
|
|
|
|
|
OPTIONAL PARAMETERS
|
|
-------------------
|
|
state::
|
|
'present' or 'absent', defaults to 'present'
|
|
|
|
|
|
EXAMPLES
|
|
--------
|
|
|
|
--------------------------------------------------------------------------------
|
|
# Create hard link of /etc/shadow
|
|
__link /root/shadow --source /etc/shadow --type hard
|
|
|
|
# Relative symbolic link
|
|
__link /etc/apache2/sites-enabled/www.test.ch \
|
|
--source ../sites-available/www.test.ch \
|
|
--type symbolic
|
|
|
|
# Absolute symbolic link
|
|
__link /opt/plone --source /home/services/plone --type symbolic
|
|
|
|
# Remove link
|
|
__link /opt/plone --state absent
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
|
SEE ALSO
|
|
--------
|
|
- cdist-type(7)
|
|
|
|
|
|
COPYING
|
|
-------
|
|
Copyright \(C) 2011-2012 Nico Schottelius. Free use of this software is
|
|
granted under the terms of the GNU General Public License version 3 (GPLv3).
|