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 at motd(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 if source is '-' (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 πŸ’œ


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