1CDIST-TYPE__MOTD(7)                  cdist                 CDIST-TYPE__MOTD(7)
2
3
4

NAME

6       cdist-type__motd - Manage message of the day
7

DESCRIPTION

9       This cdist type allows you to easily setup /etc/motd.
10
11       NOTE:
12          In some OS, motd is a bit special, check motd(5).  Currently Debian,
13          Devuan, Ubuntu and FreeBSD are taken into account.  If  your  OS  of
14          choice  does  something besides /etc/motd, check the source and con‐
15          tribute support for it.  Otherwise it will likely just work.
16

REQUIRED PARAMETERS

18       None.
19

OPTIONAL PARAMETERS

21       source If supplied, copy this file from the host running cdist  to  the
22              target.  If source is '-' (dash), take what was written to stdin
23              as the file content.  If not supplied, a default message will be
24              placed onto the target.
25

EXAMPLES

27          # Use cdist defaults
28          __motd
29
30          # Supply source file from a different type
31          __motd --source "$__type/files/my-motd"
32
33          # Supply source from stdin
34          __motd --source "-" <<EOF
35          Take this kiss upon the brow!
36          And, in parting from you now,
37          Thus much let me avow-
38          You are not wrong, who deem
39          That my days have been a dream
40          EOF
41

AUTHORS

43       Nico Schottelius <nico-cdist--@--schottelius.org>
44

COPYING

46       Copyright  (C)  2020  Nico  Schottelius. You can redistribute it and/or
47       modify it under the terms of the GNU General  Public  License  as  pub‐
48       lished  by  the  Free  Software  Foundation,  either  version  3 of the
49       License, or (at your option) any later version.
50
52       ungleich GmbH 2020
53
54
55
56
576.9.4                            Dec 21, 2020              CDIST-TYPE__MOTD(7)
Impressum