20 lines
491 B
Puppet
20 lines
491 B
Puppet
# == Class: dynmotd::config
|
|
#
|
|
# Configure the display of the Motd
|
|
#
|
|
class dynmotd::config {
|
|
|
|
# Need to print Motd upon successful ssh login
|
|
if $dynmotd::print_motd_ssh == true {
|
|
augeas { 'print_motd_ssh':
|
|
context => '/files/etc/pam.d/sshd',
|
|
changes => [
|
|
"set *[module = 'pam_motd.so']/argument motd=${dynmotd::dynmotd_path}",
|
|
],
|
|
onlyif => "match *[argument = 'motd=${dynmotd::dynmotd_path}'] size == 0",
|
|
}
|
|
|
|
}
|
|
|
|
} # Private class: dynmotd::config
|