During class definition one can change the config_dir variable, like so:
class { '::sudo':
config_dir => '/etc/sudoers.puppet',
}
But this change is neglected by actual sudo config, because they use the OS default sudo::params::config_dir instead of the class sudo::config_dir (which defaults to sudo::params::config_dir but can be overridden), see:
https://github.com/saz/puppet-sudo/blob/master/manifests/conf.pp#L55
During class definition one can change the config_dir variable, like so:
But this change is neglected by actual sudo config, because they use the OS default sudo::params::config_dir instead of the class sudo::config_dir (which defaults to sudo::params::config_dir but can be overridden), see: https://github.com/saz/puppet-sudo/blob/master/manifests/conf.pp#L55
This needs to be changed to
If needed, I will provide pull request with a fix shortly