DOKK / manpages / debian 10 / cdist / cdist-type__link.7.en
CDIST-TYPE__LINK(7) cdist CDIST-TYPE__LINK(7)

cdist-type__link - Manage links (hard and symbolic)

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

Specifies the link source.
Specifies the link type: Either hard or symoblic.

'present' or 'absent', defaults to 'present'

# Create hard link of /etc/shadow
__link /root/shadow --source /etc/shadow --type hard
# Relative symbolic link
__link /etc/apache2/sites-enabled/www.test.ch   \

--source ../sites-available/www.test.ch \
--type symbolic # Absolute symbolic link __link /opt/plone --source /home/services/plone --type symbolic # Remove link __link /opt/plone --state absent


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

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.

February 16, 2019 4.10.6