CDIST-TYPE__SSH_DOT_SSH(7)

πŸ’– cdist-type__ssh_dot_ssh πŸ’–

okay bestie, so this is a page from the cdist manual set β€” it's the cdist-type__ssh_dot_ssh type, and it's literally exactly what it sounds like. let's get into it 🫢


✨ NAME ✨

cdist-type__ssh_dot_ssh β€” manage the .ssh directory, bestie. that's the whole job. she's simple, she's iconic, she does one thing and she does it well πŸ’…


🌸 DESCRIPTION 🌸

this type adds or removes a .ssh directory inside a user's home directory. that's it. that's the gig ✨

also lowkey important: this type is the one being used by __ssh_authorized_keys. so yeah, if you've ever wondered who's out here quietly making sure the .ssh dir exists before the keys get dropped in β€” it's her. main character energy fr fr πŸ‘‘


πŸŽ€ OPTIONAL PARAMETERS πŸŽ€

no required params here, she's chill like that. but you can pass:

  • state β€” tells her whether the directory should be 'present' or 'absent'. if you don't say anything, she defaults to 'present'. so like, she'll just assume you want it there unless you tell her otherwise πŸ’β€β™€οΈ

🌈 EXAMPLES 🌈

here's how the girlies actually use it:

# Ensure root has ~/.ssh with the right permissions
__ssh_dot_ssh root

# Nico does not need ~/.ssh anymore
__ssh_dot_ssh nico --state absent

first one: root gets her ~/.ssh with the right permissions. periodt. πŸ’…

second one: Nico said no thank you, so we're yeeting his ~/.ssh with --state absent. bye bestie πŸ‘‹πŸ˜­


πŸ¦‹ SEE ALSO πŸ¦‹


πŸ‘‘ AUTHORS πŸ‘‘

Nico Schottelius <nico-cdist--@--schottelius.org> β€” yeah he wrote this. iconic of him honestly πŸ’œ


πŸ’€ COPYING πŸ’€

Copyright (C) 2014 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.

that's the whole license situation, no cap. free software, share it, remix it, slay ✨


ungleich GmbH 2021


ngl that's genuinely the entire page. tiny type, huge responsibility. go forth and manage those .ssh dirs, bestie πŸ§šβ€β™€οΈ

and that's a wrap on version 7.0.0, dated Jul 31, 2022 β€” thanks for reading my little manual page, love u, bye πŸ’–πŸŒΈπŸŽ€

πŸ“¦ where this page comes from