1CDIST-TYPE__LINK(7) cdist CDIST-TYPE__LINK(7)
2
3
4
6 cdist-type__link - Manage links (hard and symbolic)
7
9 This cdist type allows you to manage hard and symbolic links. The
10 given object id is the destination for the link.
11
13 source Specifies the link source.
14
15 type Specifies the link type: Either hard or symbolic.
16
18 state 'present' or 'absent', defaults to 'present'
19
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
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
51 Nico Schottelius <nico-cdist--@--schottelius.org>
52
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 Li‐
57 cense, or (at your option) any later version.
58
60 ungleich GmbH 2020
61
62
63
64
656.9.6 Apr 20, 2021 CDIST-TYPE__LINK(7)