module-sudo/manifests/base.pp
Antoine Beaupré 81c6a5f6d0 style
2013-06-22 12:58:45 -04:00

15 lines
554 B
Puppet

class sudo::base {
if $sudo::deploy_sudoers {
file{
'/etc/sudoers':
source => [ "puppet:///modules/site_sudo/sudoers/${::fqdn}/sudoers",
"puppet:///modules/site_sudo/sudoers/sudoers",
"puppet:///modules/sudo/sudoers/${::operatingsystem}/sudoers",
"puppet:///modules/sudo/sudoers/sudoers" ],
owner => root, group => 0, mode => 0440;
$sudo::dir:
ensure => directory,
owner => root, group => 0, mode => 0550;
}
}
}