You are hereusing puppet / outline / augeas / using augeas
using augeas
Quick start guide at http://augeas.net/tour.html
Tweet
Configure ssh to not allow PasswordAuthentication
[root@server ~] export AUGEAS_ROOT=/root/augeas-sandbox
[root@server ~] mkdir $AUGEAS_ROOT
[root@server ~] cp -pr /etc $AUGEAS_ROOT
[root@server ~] grep PasswordAuthentication augeas-sandbox/etc/ssh/sshd_config
#PasswordAuthentication yes
# PasswordAuthentication, PermitEmptyPasswords, and
[root@server ~] augtool -b
augtool> set /files/etc/ssh/sshd_config/PasswordAuthentication no
augtool> save
Saved 1 file(s)
[root@server ~]# grep PasswordAuthentication augeas-sandbox/etc/ssh/sshd_config
#PasswordAuthentication yes
# PasswordAuthentication, PermitEmptyPasswords, and
PasswordAuthentication no