[augeas] ins before / after

16 views
Skip to first unread message

Helmut Schneider

unread,
Jul 9, 2020, 8:20:38 AM7/9/20
to puppet...@googlegroups.com
Hi,

I want to put values ordered in (here) sshd_config. I tried with
ins...after but get only errors:

'sshd_config PrintMotd':
context: '/files/etc/ssh/sshd_config'
changes:
- 'set PrintMotd yes'
'sshd_config PasswordAuthentication':
context: '/files/etc/ssh/sshd_config'
changes:
- 'ins PasswordAuthentication after
/files/etc/ssh/sshd_config/PrintMotd'
- 'set PasswordAuthentication no'

Error: /Stage[main]/My_sshd/Augeas[/files/etc/ssh/sshd_config:
sshd_config PasswordAuthentication]: Could not evaluate: Save failed,
see debug output for details

I want to add an entry "PasswordAuthentication no" after "PrintMotd
yes". What is the correct syntax?

Thank you!

Reply all
Reply to author
Forward
0 new messages