ReleaseEngineering/PuppetAgain/Modules/motd

From MozillaWiki
< ReleaseEngineering‎ | PuppetAgain‎ | Modules
Revision as of 17:39, 12 July 2012 by Djmitche (talk | contribs) (Created page with "This simple utility module constructs the motd file (displayed on SSH login) from multiple fragments. To use: motd { frob-enabled: content => "** NOTE: This h...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This simple utility module constructs the motd file (displayed on SSH login) from multiple fragments. To use:

 motd {
     frob-enabled:
         content => "** NOTE: This host has frob enabled!";
 }

The content can also come from a template:

 content => template("${module_name}/motd.erb")

you can also add an order parameter to affect the order in which the messages are listed. This should be a two-digit number, given as a string. The default is 10.

 order => "05", # display above default-order motd fragments