2011-03-15 19:37:23 +00:00
|
|
|
cdist-type__link(7)
|
|
|
|
===================
|
|
|
|
Nico Schottelius <nico-cdist--@--schottelius.org>
|
|
|
|
|
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
|
|
|
cdist-type__link - Create links
|
|
|
|
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
This cdist type allows you to hard and symoblic links. The given
|
|
|
|
object id is the destination for the link.
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
-------------------
|
|
|
|
None.
|
|
|
|
|
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
|
2011-03-15 19:37:23 +00:00
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
--------
|
|
|
|
- cdist-type(7)
|
|
|
|
|
|
|
|
|
|
|
|
COPYING
|
|
|
|
-------
|
|
|
|
Copyright \(C) 2011 Nico Schottelius. Free use of this software is
|
|
|
|
granted under the terms of the GNU General Public License version 3 (GPLv3).
|