Forge Home

motd

Manages entries in a /etc/motd file.

47,880 downloads

43,574 latest version

4.5 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

  • 2.0.0 (latest)
  • 1.0.0
  • 0.1.3
  • 0.1.2
  • 0.1.1
released Jan 15th 2016
This version is compatible with:
  • , ,

Start using this module

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

Add this module to your Puppetfile:

mod 'CERNOps-motd', '2.0.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

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

Manually install this module globally with Puppet module tool:

puppet module install CERNOps-motd --version 2.0.0

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

CERNOps/motd — version 2.0.0 Jan 15th 2016

Puppet Forge Build Status

CERNOps-motd puppet module

This is the motd module. It can be used to maintain a complex and dynamic /etc/motd file e.g.

Old news is automatically rotated after 30 days and stored in files in an /etc/motd-archive.

Example Usage

# Initialize motd module.
include 'motd'

# Specify some headers to allways show.
motd::header {'welcome': message => "Welcome to box ${::fqdn}"}
motd::header {'message' message => "Please behave"}
   
# Specify a time stamped short notice for motd.
motd::news {'It is christmas': date => '2013-12-25'}
   
# Specify a time stamped long notice for motd.
motd::news {'package X': 
  date    => '2013-12-11',
  message => 'Package X is really good at solving the universe\'s problems.',
  major   => ['5','6'],
  require => Package['X']
}

In addition a default header can also be specified via hiera, see params.pp for details.

The optional major array is a list of $::operatingsystemmajrelease version which it applies to. If no major array is specified news will be assumed to apply to all.

License

Apache II License

Contact

Steve Traylen - steve.traylen@cern.ch

Support

Please log tickets and issues at our site https://github.com/cernops/puppet-motd