2011-03-12 17:47:34 +00:00
|
|
|
cdist-type__motd(7)
|
|
|
|
===================
|
2016-06-23 14:08:59 +00:00
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
|
|
|
cdist-type__motd - Manage message of the day
|
2011-03-12 17:47:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
This cdist type allows you to easily setup /etc/motd.
|
|
|
|
|
2020-04-24 18:26:44 +00:00
|
|
|
.. note::
|
|
|
|
In some OS, motd is a bit special, check `motd(5)`.
|
|
|
|
Currently 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.
|
|
|
|
|
2011-03-12 17:47:34 +00:00
|
|
|
|
|
|
|
REQUIRED PARAMETERS
|
|
|
|
-------------------
|
|
|
|
None.
|
|
|
|
|
|
|
|
|
|
|
|
OPTIONAL PARAMETERS
|
|
|
|
-------------------
|
2016-05-20 06:50:56 +00:00
|
|
|
source
|
2011-03-12 17:47:34 +00:00
|
|
|
If supplied, copy this file from the host running cdist to the target.
|
2020-04-24 18:26:44 +00:00
|
|
|
If source is '-' (dash), take what was written to stdin as the file content.
|
2011-03-12 17:47:34 +00:00
|
|
|
If not supplied, a default message will be placed onto the target.
|
|
|
|
|
|
|
|
|
|
|
|
EXAMPLES
|
|
|
|
--------
|
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
.. code-block:: sh
|
|
|
|
|
|
|
|
# Use cdist defaults
|
|
|
|
__motd
|
2011-03-12 17:47:34 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
# Supply source file from a different type
|
|
|
|
__motd --source "$__type/files/my-motd"
|
2011-03-12 17:47:34 +00:00
|
|
|
|
2020-04-24 18:26:44 +00:00
|
|
|
# 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
|
|
|
|
|
2011-03-12 17:47:34 +00:00
|
|
|
|
2016-06-17 19:28:16 +00:00
|
|
|
AUTHORS
|
|
|
|
-------
|
|
|
|
Nico Schottelius <nico-cdist--@--schottelius.org>
|
2011-03-12 17:47:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
COPYING
|
|
|
|
-------
|
2020-04-24 18:26:44 +00:00
|
|
|
Copyright \(C) 2020 Nico Schottelius. You can redistribute it
|
2016-08-10 16:15:54 +00:00
|
|
|
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.
|