Commit 92073a73 authored by Antoine Beaupré's avatar Antoine Beaupré

make the path sudoers a parameter too

this simplifies the freebsd code greatly
parent 6df937e3
class sudo::base {
if $sudo::deploy_sudoers {
file {
'/etc/sudoers':
$sudo::path:
source => [ "puppet:///modules/site_sudo/sudoers/${::fqdn}/sudoers",
"puppet:///modules/site_sudo/sudoers/sudoers",
"puppet:///modules/sudo/sudoers/${::operatingsystem}/sudoers",
......
......@@ -2,11 +2,4 @@ class sudo::freebsd inherits sudo::base {
package{'sudo':
ensure => installed,
}
if $sudo_deploy_sudoers {
File['/etc/sudoers']{
path => "/usr/local/etc/sudoers",
require => Package['sudo'],
}
}
}
......@@ -4,6 +4,7 @@
class sudo(
$deploy_sudoers = $sudo::deploy_sudoers,
$path = $sudo::params::path,
$dir = $sudo::params::dir
) inherits sudo::params {
case $::kernel {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment