On 05/22/14 18:21, Erling Ringen Elvsrud wrote:

I try to accomplish this with Puppet / Augeas:

Insert:
Match User <foo>
    banner "none"

at the end of /etc/ssh/sshd_config unless the two lines are alredy present.
> ...
I appreciate if anyone can post a suggested solution for this task.

set /files/etc/ssh/sshd_config/Match/Condition/User <foo>
set /files/etc/ssh/sshd_config/Match/Settings/banner '"none"'


--
Ian

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/537EBAFA.600%40uq.edu.au.
For more options, visit https://groups.google.com/d/optout.

Reply via email to