Puppet Class: psick::motd
- Defined in:
- manifests/motd.pp
Overview
This class manages /etc/motd and /etc/issue files.
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'manifests/motd.pp', line 28
class psick::motd (
String $motd_file_ensure = 'present',
String $motd_file_template = 'psick/motd/motd.erb',
String $motd_extratext = '',
String $issue_file_ensure = 'present',
String $issue_file_template = 'psick/motd/issue.erb',
String $issue_extratext = '',
Boolean $manage = $psick::manage,
Boolean $noop_manage = $psick::noop_manage,
Boolean $noop_value = $psick::noop_value,
) {
if $manage {
if $noop_manage {
noop($noop_value)
}
if $motd_file_template != '' {
file { '/etc/motd':
ensure => $motd_file_ensure,
content => template($motd_file_template),
}
}
if $issue_file_template != '' {
file { '/etc/issue':
ensure => $issue_file_ensure,
content => template($issue_file_template),
}
}
}
}
|