Forge Home

motd

Template based /etc/motd which shows only the most crucial info about the server.

138 downloads

48 latest version

5.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 1.1.2 (latest)
  • 1.1.1
  • 1.1.0
  • 1.0.1
released Oct 23rd 2024
This version is compatible with:
  • Puppet Enterprise 2023.8.x, 2023.7.x, 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x
  • Puppet >= 7.0.0 < 9.0.0
  • , CentOS, Gentoo, , , , , ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'okopop-motd', '1.1.2'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add okopop-motd
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install okopop-motd --version 1.1.2

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download
Tags: motd

Documentation

okopop/motd — version 1.1.2 Oct 23rd 2024

Puppet Forge version Puppet Forge - PDK version Puppet Forge quality score GitHub Actions Workflow Status

motd

Template based /etc/motd which shows only the most crucial info about the server. The ambition is to keep this module simple but relevant and not add values that change often. I have not tested on all different distros myself but should work if you have normal facter values and the uptime --since command. Feel free to contribute!

  • Show a simple server summary.
  • Add custom server information with hiera.
  • Add warning message with hiera, when you want to get an important message out to the users that log in.
  • 'Last reboot' is a more static value than showing number of days uptime, which create unnecessary change noise everyday. The value could be used to get a hint when a server most likely got updated and rebooted, or if the server is forgotten because of high uptime and need some attention.

Hiera example

---
classes:
  - motd

motd::info: "Product X | Production | Team Y"
motd::warn: "This OS version is EOL since XX-YY-ZZ"

Motd example

================== Motd by Puppet ==============================
Hostname.........: testhest.example.com
Platform.........: vmware, 2 CPU, 3.47 GiB RAM
Operating System.: Red Hat Enterprise Linux release 8.10 (Ootpa)
Puppet Agent.....: 7.18.0
Last reboot......: 2024-10-19 01:22
Information......: Product X | Production | Team Y
WARNING..........: This OS version is EOL since XX-YY-ZZ
================================================================