CDIST-TYPE__INSTALL_DIRECTORY(7)
π cdist-type__install_directory β the manual page, bestie edition β¨
ok so you're reading cdist-type__install_directory(7) from the cdist manuals and honestly? you picked a good one. this lil type is the one that makes directories appear (or disappear) on your target machine using the install command. iconic behaviour, no cap.
β¨ NAME β¨
cdist-type__install_directory β Manage a directory with install command ποΈ
π DESCRIPTION π
okay so here's the tea: this cdist type lets you create or remove directories on the target. that's it, that's the whole vibe. it's giving directory management, and it's giving it well. π«Ά
πΈ REQUIRED PARAMETERS πΈ
None. literally nothing, she's low maintenance π
π¦ OPTIONAL PARAMETERS π¦
stateβ'present'or'absent', defaults to'present'. so like, do you want the dir or not bestie πgroupβ Group tochgrpto.modeβ Unix permissions, suitable forchmod.ownerβ User tochownto.
β BOOLEAN PARAMETERS β
parentsβ Whether to create parents as well (mkdir -pbehaviour). Warning: all intermediate directory permissions default to whatevermkdir -pdoes.
Usually this meansroot:root,0700. so likeβ¦ heads up, the in-between dirs are gonna be locked down and you didn't even get a say π
recursiveβ If supplied thechgrpandchowncall will run recursively. This does not influence the behaviour ofchmod. read that again bestie,chmodis not invited to the recursion party π
π MESSAGES π
these are the lil receipts she leaves you when things happen β¨
chgrp <group>β Changed group membershipchown <owner>β Changed ownerchmod <mode>β Changed modecreateβ Empty directory was createdremoveβ Directory exists, but state is absent, directory will be removed by generated code.remove non directoryβ Something other than a directory with the same name exists and was removed prior to create.
π EXAMPLES π
no because these examples ate, look at her go π
# A silly example
__install_directory /tmp/foobar
# Remove a directory
__install_directory /tmp/foobar --state absent
# Ensure /etc exists correctly
__install_directory /etc --owner root --group root --mode 0755
# Create nfs service directory, including parents
__install_directory /home/services/nfs --parents
# Change permissions recursively
__install_directory /home/services --recursive --owner root --group root
# Setup a temp directory
__install_directory /local --mode 1777
# Take it all
__install_directory /home/services/kvm --recursive --parents \
--owner root --group root --mode 0755 --state present
π AUTHORS π
Nico Schottelius <nico-cdist--@--schottelius.org> β shoutout to the legend, fr fr π
π COPYING π
Copyright (C) 2011 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.
π§ COPYRIGHT π§
ungleich GmbH 2021
okay that's the whole page, you're officially certified πβ¨ this was cdist version 7.0.0, dated Jul 31, 2022 β go forth and make your directories, bestie, you got this πππ¦
π¦ 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