module-sudo/manifests/base.pp
2013-06-22 12:38:41 -04:00

15 lines
553 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;
}
file { ${sudo::sudoersdir}:
ensure => directory,
owner => root, group => 0, mode => 0550;
}
}
}