Puppet Class: motd
- Inherits:
- ::motd::params
- Defined in:
- manifests/init.pp
Overview
Class: puppet-motd
This module manages puppet-motd. Currently this is only the module version of the ripienaar/concat example.
Parameters:
Actions:
Requires:
Sample Usage:
class { 'motd': }
motd::register{'Apache': }
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'manifests/init.pp', line 15
class motd (
$motd_file = $motd::params::motd_file,
) inherits ::motd::params {
concat{$motd_file:
ensure => present,
ensure_newline => true,
owner => root,
group => root,
mode => '0755',
}
concat::fragment{'motd_os_header':
target => $motd_file,
content => template('motd/os.erb'),
order => '01',
}
concat::fragment{'motd_puppet_header':
target => $motd_file,
content => "Puppet environment: ${::environment}",
order => '02',
}
concat::fragment{'motd_modules_header':
target => $motd_file,
content => 'Puppet modules on this server:',
order => '03',
}
}
|