* (#1) Edit the Augeas ressource (print motd on ssh login) to manage a config line with one or more arguments.

This commit is contained in:
gardouille 2015-02-09 10:59:18 +01:00
parent c96a63825b
commit 8a75a691e3
2 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,7 @@
##### Changes
* Correct warning from Puppet-lint (indentation, default case, string with var).
* Correct README.md.
* (#1) Edit the Augeas ressource (print motd on ssh login) to manage a config line with one or more arguments.
---------------------------------------

View File

@ -10,6 +10,7 @@ class dynmotd::config {
context => '/files/etc/pam.d/sshd',
changes => [
"set *[module = 'pam_motd.so']/argument motd=${dynmotd::dynmotd_path}",
"set *[module = 'pam_motd.so']/argument[1] motd=${dynmotd::dynmotd_path}",
],
onlyif => "match *[argument = 'motd=${dynmotd::dynmotd_path}'] size == 0",
}