Problem with sudo cookbook


#1
Hi everyone,




I have a testing chef server, and i got a problem with the sudo
cookbook.




i have databags with 3 users (admins) the sudo cookbook with 3 users
in my template, they are applied to my servers, but on a specific
server, there is already some sudo rules, and when chef-client
starting, the cookbook erase the existant sudo rules.


How can i do to keep my existing sudo rules on this specific server
using the sudo cookbook?




Thanks for your help




Best regards




Franck

#2

Add an additional role to that node/server which adds those additional
sudo rules. Currently the sudoers cookbook does not support fine grained
control (it gives flat all commands privileges as all users to all
hosts), we have tweaked it to suit our need, let me know if you need
that kinda feature.
On Thu, 2011-08-11 at 17:49 +0200, Franck Meignen wrote:

Hi everyone,

I have a testing chef server, and i got a problem with the sudo
cookbook.

i have databags with 3 users (admins) the sudo cookbook with 3 users
in my template, they are applied to my servers, but on a specific
server, there is already some sudo rules, and when chef-client
starting, the cookbook erase the existant sudo rules.
How can i do to keep my existing sudo rules on this specific server
using the sudo cookbook?

Thanks for your help

Best regards

Franck