I have saz-sudo installed and have created a site_sudo module based (I hope) on it. Here's what I have in my site_sudo/manifest/init.pp file:
class { 'site_sudo': }
sudo::conf { 'web':
source => 'puppet:///files/etc/sudoers',
}
sudo::conf { 'syseng':
priority => 10,
content => "%sysadm ALL=(ALL) NOPASSWD: ALL",
}
include sudo
No matter what I do, the sudoers file on the target is always overwritten with the sudoers.rhel6 file from saz-sudo module.
I'm using common.yaml too:
classes:
- site_sudo
sudo::conf
declarations like that, seeing as they are in the same context as theclass {}
andinclude
statements.