Skip to content

Manages entries dynamically in a /etc/motd file with puppet.

License

Notifications You must be signed in to change notification settings

velaar/puppet-motd

This branch is 12 commits ahead of treydock/puppet-motd:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Vladimir Rurukin
Dec 15, 2015
da7ca53 · Dec 15, 2015

History

27 Commits
Dec 15, 2015
May 26, 2014
Oct 6, 2014
Oct 6, 2014
Dec 17, 2013
Sep 26, 2014
Sep 26, 2014
Sep 26, 2014
May 26, 2014
Sep 26, 2014
Sep 16, 2013
May 26, 2014
May 26, 2014
Sep 26, 2014
May 26, 2014

Repository files navigation

CERNOps-motd puppet module

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

   **********************************************************
   * Welcome to host.example.org running CentOS 5.3
   * blahs blah
   * 2013-12-11 - Package X was installed.
   *  Package X is really good at solving the universe's
   *  problems.
   * 2013-12-25 - It is christmas day.
   **********************************************************

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.',
  require => Package['X']
}

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

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

About

Manages entries dynamically in a /etc/motd file with puppet.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 47.1%
  • Puppet 45.4%
  • HTML 7.5%