Bryan Kearney wrote:
> Avi Miller wrote:
>> Hey Bryan,
>>
>> Bryan Kearney wrote:
>>>    augeas { "sshd_conf_group_sshuser":
>>>        context =>  "/files/etc/ssh/sshd_config",
>>>        changes =>  "set AllowGroups/10000 sshuser",
>>>        onlyif =>  "match AllowGroups != sshuser
>>>    }
>>

Even better, I spoke with David Lutterkort, and he suggested the following:

    augeas { "sshd_conf_group_sshuser":
         context =>  "/files/etc/ssh/sshd_config",
         changes =>  "set AllowGroups/1000 sshuser",
         onlyif  =>  "match AllowGroups/*[.='sshuser'] size == 0",
     }


that will work with no changes to the code base.

-- bk

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to