There is a trick I use on my infrastructure, it is around having an include dir for sudoers. You can write a custom function to retrieve the data from the database and return it as a hash. You would need to do a define if you want to define each user sudo permissions as a individual resource. Alternatively you could also use an erb and loop through the hash.
On Thursday, May 31, 2012 9:52:05 AM UTC-4, 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 ? > > Thanks > mac > On Thursday, May 31, 2012 9:52:05 AM UTC-4, 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 ? > > 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/-/pAdSaQ_CofAJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
