2011-03-15 19:37:23 +00:00
|
|
|
cdist-type__link(7)
|
|
|
|
===================
|
2016-06-23 14:08:59 +00:00
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
|
|
|
cdist-type__link - Manage links (hard and symbolic)
|
2011-03-15 19:37:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
2012-01-09 14:46:35 +00:00
|
|
|
This cdist type allows you to manage hard and symbolic links.
|
|
|
|
The given object id is the destination for the link.
|
2011-03-15 19:37:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
REQUIRED PARAMETERS
|
|
|
|
-------------------
|
2016-05-20 06:50:56 +00:00
|
|
|
source
|
2011-03-15 19:37:23 +00:00
|
|
|
Specifies the link source.
|
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
type
|
2020-05-09 16:40:44 +00:00
|
|
|
Specifies the link type: Either hard or symbolic.
|
2011-03-15 19:37:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
OPTIONAL PARAMETERS
|
|
|
|
-------------------
|
2016-05-20 06:50:56 +00:00
|
|
|
state
|
2011-07-21 22:28:41 +00:00
|
|
|
'present' or 'absent', defaults to 'present'
|
2011-03-15 19:37:23 +00:00
|
|
|
|
2011-03-16 07:45:01 +00:00
|
|
|
|
2019-04-11 10:59:15 +00:00
|
|
|
MESSAGES
|
|
|
|
--------
|
|
|
|
|
|
|
|
created <destination>
|
|
|
|
Link to destination was created.
|
|
|
|
|
|
|
|
removed <destination>
|
|
|
|
Link to destination was removed.
|
|
|
|
|
|
|
|
removed <destination> (directory)
|
|
|
|
Destination was removed because state is ``present`` and destination was directory.
|
|
|
|
|
|
|
|
removed <destination> (wrongsource)
|
|
|
|
Destination was removed because state is ``present`` and destination link source was wrong.
|
|
|
|
|
|
|
|
|
2011-03-15 19:37:23 +00:00
|
|
|
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
|
2011-03-15 19:37:23 +00:00
|
|
|
|
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
|
2011-03-15 19:37:23 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
# Absolute symbolic link
|
|
|
|
__link /opt/plone --source /home/services/plone --type symbolic
|
2012-01-09 14:46:35 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
# Remove link
|
|
|
|
__link /opt/plone --state absent
|
2011-03-15 19:37:23 +00:00
|
|
|
|
|
|
|
|
2016-06-17 19:28:16 +00:00
|
|
|
AUTHORS
|
|
|
|
-------
|
|
|
|
Nico Schottelius <nico-cdist--@--schottelius.org>
|
2011-03-15 19:37:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
COPYING
|
|
|
|
-------
|
2016-08-10 16:15:54 +00:00
|
|
|
Copyright \(C) 2011-2012 Nico Schottelius. You can redistribute it
|
|
|
|
and/or modify it under the terms of the GNU General Public License as
|
|
|
|
published by the Free Software Foundation, either version 3 of the
|
|
|
|
License, or (at your option) any later version.
|