CDIST-TYPE__MOTD(7)
π cdist-type__motd(7) β the manual, but make it cute π
okay bestie, so this is cdist-type__motd from the cdist manual, section 7. and no cap, it's a whole vibe. let's get into it β¨
πΈ NAME πΈ
cdist-type__motd β manage the message of the day, aka the little note your machine says hi with. iconic behaviour honestly π
β¨ DESCRIPTION β¨
This cdist type lets you easily set up /etc/motd. that's it, that's the job, and it does it slay π
NOTE: on some OSes, motd is a lil bit special β go peek atmotd(5)if you're curious. rn Debian, Devuan, Ubuntu and FreeBSD are taken into account. if your OS of choice does something besides/etc/motd, check the source and contribute support for it. otherwise it will likely just work π¦
π«Ά REQUIRED PARAMETERS π«Ά
None. literally none. zero. you don't have to bring anything to this party π
π OPTIONAL PARAMETERS π
sourceβ if you supply this, it copies this file from the host running cdist over to the target. and ifsourceis'-'(that's a dash, bestie), it takes whatever was written to stdin as the file content. if you don't supply it at all, a default message gets placed onto the target. so likeβ¦ you always get something, it's giving generous π
π EXAMPLES π
# Use cdist defaults
__motd
# Supply source file from a different type
__motd --source "$__type/files/my-motd"
# Supply source from stdin
__motd --source "-" <<EOF
Take this kiss upon the brow!
And, in parting from you now,
Thus much let me avow-
You are not wrong, who deem
That my days have been a dream
EOF
π AUTHORS π
Nico Schottelius <nico-cdist--@--schottelius.org> β the main character who wrote this π«‘
π COPYING π
Copyright (C) 2020 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. fr fr, that's the whole license paragraph, don't skip it π
β COPYRIGHT β
ungleich GmbH 2021
and that's the whole page bestie, we ate and left no crumbs π½οΈβ¨ this was cdist-type__motd(7) from cdist version 7.0.0, dated Jul 31, 2022. go set up a motd, it's your moment πΈππ¦
π¦ 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