cdist/cdist/conf/type/__link/man.rst

61 lines
1.2 KiB
ReStructuredText
Raw Normal View History

cdist-type__link(7)
===================
NAME
----
cdist-type__link - Manage links (hard and symbolic)
2016-05-20 06:50:56 +00:00
Nico Schottelius <nico-cdist--@--schottelius.org>
DESCRIPTION
-----------
This cdist type allows you to manage hard and symbolic links.
The given object id is the destination for the link.
REQUIRED PARAMETERS
-------------------
2016-05-20 06:50:56 +00:00
source
Specifies the link source.
2016-05-20 06:50:56 +00:00
type
Specifies the link type: Either hard or symoblic.
OPTIONAL PARAMETERS
-------------------
2016-05-20 06:50:56 +00:00
state
'present' or 'absent', defaults to 'present'
EXAMPLES
--------
2016-05-20 06:50:56 +00:00
.. code-block:: sh
# Create hard link of /etc/shadow
__link /root/shadow --source /etc/shadow --type hard
2016-05-20 06:50:56 +00:00
# Relative symbolic link
__link /etc/apache2/sites-enabled/www.test.ch \
--source ../sites-available/www.test.ch \
--type symbolic
2016-05-20 06:50:56 +00:00
# Absolute symbolic link
__link /opt/plone --source /home/services/plone --type symbolic
2016-05-20 06:50:56 +00:00
# Remove link
__link /opt/plone --state absent
SEE ALSO
--------
2016-05-20 06:50:56 +00:00
- `cdist-type(7) <cdist-type.html>`_
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).