CDIST-TYPE__LINK(7)
π cdist-type__link β the glow-up for links π
okay so bestie, welcome to cdist-type__link(7) from the cdist manual fam (section 7, the cool section). this is the type that lets you manage hard and symbolic links, and the whole vibe is: the object id you hand it? that's the destination of the link. periodt. πβ¨
β¨ DESCRIPTION β¨
This cdist type lets you manage hard links and symbolic links, no cap. The given object id is the destination for the link. That's the whole assignment and it ate. π
π REQUIRED PARAMETERS π
like, you literally cannot skip these, they're not optional bestie:
sourceβ specifies the link source. the origin story. the blueprint. π¦typeβ specifies the link type. and it's giving two options only: eitherhardorsymbolic. pick your fighter. π₯
πΈ OPTIONAL PARAMETERS πΈ
stateβ'present'or'absent', defaults to'present'. lowkey the mood ring of the whole operation. β¨
π¬ MESSAGES π¬
these are the lil receipts cdist hands you so you know what went down:
created <destination>β link to destination was created. new link just dropped, iconic. πremoved <destination>β link to destination was removed. it's gone, we don't talk about it. πremoved <destination> (directory)β destination was removed becausestateispresentand destination was a directory. plot twist, it wasn't even a link. πremoved <destination> (wrongsource)β destination was removed becausestateispresentand the destination link source was wrong. it was linking to the wrong person the whole time, embarrassing fr fr. π
π EXAMPLES π
copy these exactly bestie, no free-styling:
# 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
π AUTHORS π
Nico Schottelius <nico-cdist--@--schottelius.org> β the main character who wrote this. we stan. π«Ά
π COPYING π
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.
this is the legal bit bestie, don't skim it β GPLv3-or-later, so share the love (and the source) accordingly. β
π COPYRIGHT π
ungleich GmbH 2021
that's the whole page, you're welcome. this was cdist-type__link(7) from cdist 7.0.0, dated Jul 31, 2022 β go forth and link things, bestie, and remember: the destination is always the object id. slay. πβ¨ππ¦πΈπ
π¦ where this page comes from
- fedora 43: cdist 7.0.0-16.fc43 Β· GPL-3.0-only
- fedora 44: cdist 7.0.0-18.fc44 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms