- Description
- Setup - The basics of getting started with puppet-motd
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
Configures the Message of the day (motd) using puppet.
This motd module manages the file /etc/motd and also provides functionality to add custom snippets.
To begin with motd module, all you need to do is include motd
class.
include '::motd'
Simply including the motd class will create basic motd file with below listed contents.
-------------------------------------------------
node1.example.net
CentOS 7.2.1511 x86\_64
Puppet : 4.7.0
Facter : 3.4.1
FQDN : node1.local
IP : 10.0.2.15
Processor: Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
Memory : 489.04 MiB
-------------------------------------------------
Custom section starts below:
-------------------------------------------------
*End of MOTD file*
-------------------------------------------------
To add a custom snippet to motd file, all you need to do is use motd::snippet
defined type.
motd::snippet { 'test_snippet':
content => "Test snippet which will be added in custom section.",
}
This motd module contains the following defined types:
This defined type adds custom contents into motd file in the custom section.
The following parameters are available in the ::motd::snippet
defined type:
Content to be added in the motd file. Can be either a string or a template.
Specifies a order for sorting your contents within the custom section of the motd file.
Tested only on below operating systems:
- Centos: 6, 7
Supported puppet versions:
- 4.5.0+