2011-03-15 19:37:23 +00:00
|
|
|
cdist-type__link(7)
|
|
|
|
===================
|
|
|
|
Nico Schottelius <nico-cdist--@--schottelius.org>
|
|
|
|
|
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
2012-01-09 14:46:35 +00:00
|
|
|
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
|
|
|
|
-------------------
|
|
|
|
source::
|
|
|
|
Specifies the link source.
|
|
|
|
|
2011-03-15 19:51:09 +00:00
|
|
|
type::
|
2011-03-15 19:37:23 +00:00
|
|
|
Specifies the link type: Either hard or symoblic.
|
|
|
|
|
|
|
|
|
|
|
|
OPTIONAL PARAMETERS
|
|
|
|
-------------------
|
2011-07-21 22:28:41 +00:00
|
|
|
state::
|
|
|
|
'present' or 'absent', defaults to 'present'
|
2011-03-15 19:37:23 +00:00
|
|
|
|
2011-03-16 07:45:01 +00:00
|
|
|
|
2011-03-15 19:37:23 +00:00
|
|
|
EXAMPLES
|
|
|
|
--------
|
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
2011-03-15 19:51:09 +00:00
|
|
|
# Create hard link of /etc/shadow
|
2011-03-16 07:45:01 +00:00
|
|
|
__link /root/shadow --source /etc/shadow --type hard
|
2011-03-15 19:37:23 +00:00
|
|
|
|
2011-03-15 19:51:09 +00:00
|
|
|
# Relative symbolic link
|
2011-03-16 07:45:01 +00:00
|
|
|
__link /etc/apache2/sites-enabled/www.test.ch \
|
2011-03-15 19:51:09 +00:00
|
|
|
--source ../sites-available/www.test.ch \
|
|
|
|
--type symbolic
|
2011-03-15 19:37:23 +00:00
|
|
|
|
2011-03-16 07:45:01 +00:00
|
|
|
# Absolute symbolic link
|
|
|
|
__link /opt/plone --source /home/services/plone --type symbolic
|
2012-01-09 14:46:35 +00:00
|
|
|
|
|
|
|
# Remove link
|
|
|
|
__link /opt/plone --state absent
|
2011-03-15 19:37:23 +00:00
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
--------
|
|
|
|
- cdist-type(7)
|
|
|
|
|
|
|
|
|
|
|
|
COPYING
|
|
|
|
-------
|
2012-01-09 14:46:35 +00:00
|
|
|
Copyright \(C) 2011-2012 Nico Schottelius. Free use of this software is
|
2011-03-15 19:37:23 +00:00
|
|
|
granted under the terms of the GNU General Public License version 3 (GPLv3).
|