Puppet Class: motd

Defined in:
modules/motd/manifests/init.pp

Overview

SPDX-License-Identifier: Apache-2.0

Class: motd

Module for customizing MOTD (Message of the Day) banners.



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'modules/motd/manifests/init.pp', line 6

class motd {
    # Kill Debian's default copyright/warranty banner
    file { '/etc/motd':
        ensure => absent,
    }

    file { '/etc/update-motd.d':
        ensure  => directory,
        owner   => 'root',
        group   => 'root',
        mode    => '0755',
        recurse => true,
        purge   => true,
    }

    include motd::defaults
}