On 12-05-31 09:52 AM, mac01 wrote:
Hi,
How can I transform group in sudoers file where users are added as
"%admin ALL=(ALL) ALL" with individual user name which should fetch
username from my database ?
In the template that generates your sudoers file you could call a custom
function (that you would need to write) which queries your database to
get the username.
See the section on calling custom functions from templates in
http://docs.puppetlabs.com/guides/custom_functions.html
Thanks
mac
--
You received this message because you are subscribed to the Google
Groups "Puppet Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-users/-/J3FfmsoLfpQJ.
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.
--
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.