Rob, Thanks for the reply. I took a step back and starting googling Augeas instead of puppet and Augeas. Here's how I was able to solve this problem:
define sudoer() { augeas { "sudo${name}": context => "/files/etc/sudoers", changes => [ "set spec[last() + 1]/user ${name}", "set spec[last()]/host_group/host ALL", "set spec[last()]/host_group/command ALL", "set spec[last()]/host_group/command/runas_user ALL", "set spec[last()]/host_group/command/tag NOPASSWD", ], onlyif => "match *[user = '${name}'] size == 0", } } On Jun 30, 10:39 am, Rob McBroom <mailingli...@skurfer.com> wrote: > On Jun 30, 2010, at 10:36 AM, Rob McBroom wrote: > > > In any case, I would try this: > > > "set spec[last()]/host_group/command 'NOPASSWD: ALL’”, > > And of course replace the fancy quotes my mail client inserted. > > -- > Rob McBroom > <http://www.skurfer.com/> -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@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.