* (#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:
parent
c96a63825b
commit
8a75a691e3
|
@ -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.
|
||||
|
||||
---------------------------------------
|
||||
|
||||
|
|
|
@ -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",
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue