Skip to content

okopop/puppet-motd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
================================================================

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published