ReleaseEngineering/PuppetAgain/Modules/motd

From MozillaWiki
Jump to: navigation, 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