I'm trying to make my sudoers file much more dynamic than it currently is. Right now its a monolithic file with every host, every user, every user group and what they can do as sudo.
Is there a way I can make this more granular and dynamic. For example, what I'd like to do is add a user to my accounts.pp and when I realize them on a particuler server have them be able to run sudo su - apache.
Thanks for you help!