1CDIST-TYPE__LINK(7)                  cdist                 CDIST-TYPE__LINK(7)
2
3
4

NAME

6       cdist-type__link - Manage links (hard and symbolic)
7

DESCRIPTION

9       This  cdist  type  allows  you  to manage hard and symbolic links.  The
10       given object id is the destination for the link.
11

REQUIRED PARAMETERS

13       source Specifies the link source.
14
15       type   Specifies the link type: Either hard or symoblic.
16

OPTIONAL PARAMETERS

18       state  'present' or 'absent', defaults to 'present'
19

MESSAGES

21       created <destination>
22              Link to destination was created.
23
24       removed <destination>
25              Link to destination was removed.
26
27       removed <destination> (directory)
28              Destination was removed because state is present and destination
29              was directory.
30
31       removed <destination> (wrongsource)
32              Destination was removed because state is present and destination
33              link source was wrong.
34

EXAMPLES

36          # Create hard link of /etc/shadow
37          __link /root/shadow --source /etc/shadow --type hard
38
39          # Relative symbolic link
40          __link /etc/apache2/sites-enabled/www.test.ch   \
41             --source ../sites-available/www.test.ch      \
42             --type symbolic
43
44          # Absolute symbolic link
45          __link /opt/plone --source /home/services/plone --type symbolic
46
47          # Remove link
48          __link /opt/plone --state absent
49

AUTHORS

51       Nico Schottelius <nico-cdist--@--schottelius.org>
52

COPYING

54       Copyright (C) 2011-2012  Nico  Schottelius.  You  can  redistribute  it
55       and/or  modify  it under the terms of the GNU General Public License as
56       published by the Free Software Foundation,  either  version  3  of  the
57       License, or (at your option) any later version.
58
60       ungleich GmbH 2019
61
62
63
64
656.4.0                            Jan 04, 2020              CDIST-TYPE__LINK(7)
Impressum