motd

pdk
supported
A simple module to demonstrate managing /etc/motd or Windows Logon Message as a template

2,984,004 downloads

1,227 latest version

Version information

  • 7.3.0 (latest)
  • 7.2.0
  • 7.1.0
  • 7.0.0
  • 6.3.0
  • 6.2.0
  • 6.1.0
  • 6.0.0
  • 5.0.0
  • 4.3.0
  • 4.2.0
  • 4.1.1
  • 4.1.0
  • 4.0.0
  • 3.1.0
  • 3.0.0
  • 2.1.2
  • 2.1.1
  • 2.1.0
  • 2.0.0
  • 1.9.0
  • 1.8.0
  • 1.7.0
  • 1.6.0
  • 1.5.1
  • 1.5.0
  • 1.4.0
  • 1.3.0
  • 1.2.0
  • 1.1.1
  • 1.1.0
  • 1.0.1
  • 1.0.0
released Apr 18th 2025
This version is compatible with:
  • Puppet Enterprise 2025.4.x, 2025.3.x, 2025.2.x, 2025.1.x, 2023.8.x, 2023.7.x, 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x
  • Puppet >= 7.0.0 < 9.0.0
  • RedHat
    ,
    CentOS
    ,
    OracleLinux
    ,
    Scientific
    ,
    Debian
    ,
    SLES
    ,
    Ubuntu
    ,
    Windows
    ,
    Rocky
    ,
    AlmaLinux

Start using this module

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

Add this module to your Puppetfile:

mod 'puppetlabs-motd', '7.3.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

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

Manually install this module globally with Puppet module tool:

puppet module install puppetlabs-motd --version 7.3.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: testing

Documentation

puppetlabs/motd — version 7.3.0 Apr 18th 2025

Reference

Table of Contents

Classes

  • motd: This module configures a system message of the day on a wide variety of systems.

Classes

motd

This module configures a system message of the day on a wide variety of systems.

Examples

Basic usage
include motd

Parameters

The following parameters are available in the motd class:

dynamic_motd

Data type: Boolean

Enables or disables dynamic motd on Debian systems.

Default value: true

template

Data type: Optional[String]

Specifies a custom template. A template takes precedence over content. Valid options: '/mymodule/mytemplate.erb'.

Default value: undef

content

Data type: Optional[String]

Specifies a static string as the motd content.

Default value: undef

issue_template

Data type: Optional[String]

Specifies a custom template to process and save to /etc/issue. A template takes precedence over issue_content.

Default value: undef

issue_content

Data type: Optional[String]

Specifies a static string as the /etc/issue content.

Default value: undef

issue_net_template

Data type: Optional[String]

Specifies a custom template to process and save to /etc/issue.net. A template takes precedence over issue_net_content.

Default value: undef

issue_net_content

Data type: Optional[String]

Specifies a static string as the /etc/issue.net content.

Default value: undef

windows_motd_title

Data type: String

Specifies a static string to be used for: 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\policies\system\legalnoticetext' and 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\policies\system\legalnoticecaption' The 'legalnoticetext' registry key is shown before login on a Windows system.

Default value: 'Message of the day'