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 to chgrp to.
  • mode β€” Unix permissions, suitable for chmod.
  • owner β€” User to chown to.

⭐ BOOLEAN PARAMETERS ⭐

  • parents β€” Whether to create parents as well (mkdir -p behaviour). Warning: all intermediate directory permissions default to whatever mkdir -p does.
Usually this means root: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 the chgrp and chown call will run recursively. This does not influence the behaviour of chmod. read that again bestie, chmod is not invited to the recursion party 😭

πŸ’Œ MESSAGES πŸ’Œ

these are the lil receipts she leaves you when things happen ✨

  • chgrp <group> β€” Changed group membership
  • chown <owner> β€” Changed owner
  • chmod <mode> β€” Changed mode
  • create β€” Empty directory was created
  • remove β€” 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.


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