This commit is contained in:
Antoine Beaupré 2013-06-22 12:58:45 -04:00
parent 7812183189
commit 81c6a5f6d0

View file

@ -1,15 +1,15 @@
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::dir:
ensure => directory,
owner => root, group => 0, mode => 0550;
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;
}
}
}