Commit 6b3428b8 authored by Micah's avatar Micah

remove 'include sudo' because this would result in a duplicate definition if you

have in your site_sudo something like:

  class { 'sudo': deploy_sudoers => true }

instead we just declare a class dependency on the file in the define
parent d5096bc5
......@@ -3,7 +3,7 @@ define sudo::access (
$user = undef,
$access = 'ALL=(ALL) ALL'
) {
include sudo
if $user == undef {
$real_user = $name
} else {
......@@ -16,5 +16,6 @@ define sudo::access (
group => 0,
mode => '0440',
content => "# THIS FILE IS MANAGED BY PUPPET !\n${real_user} ${access}\n",
require => Class['sudo']
}
}
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