Puppet Class: motd

Defined in:
manifests/init.pp

Summary

motd

Overview

Examples:

include motd

Parameters:

  • ensure (Variant[Enum['present', 'absent']]) (defaults to: 'present')

    Should the file exist or not

  • info (Optional[String]) (defaults to: undef)

    Set information message from hiera

  • warn (Optional[String]) (defaults to: undef)

    Set warning message from hiera



13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'manifests/init.pp', line 13

class motd (
  Optional[String] $info                     = undef,
  Optional[String] $warn                     = undef,
  Variant[Enum['present', 'absent']] $ensure = 'present',
) {
  file { '/etc/motd':
    ensure  => $ensure,
    owner   => 'root',
    group   => 'root',
    mode    => '0644',
    content => epp('motd/motd.epp'),
  }
}