make the user default work

This commit is contained in:
Antoine Beaupré 2013-06-22 12:50:49 -04:00
parent f02dcffe22
commit b3d158a696

View file

@ -4,7 +4,7 @@ define sudo::access (
$access = 'ALL=(ALL) ALL' $access = 'ALL=(ALL) ALL'
) { ) {
if $user == undef { if $user == undef {
$user = $name $real_user = $name
} }
# there shouldn't be a dot in those filenames! # there shouldn't be a dot in those filenames!
file { "${sudo::sudoersdir}/01-user_access-${title}": file { "${sudo::sudoersdir}/01-user_access-${title}":
@ -12,6 +12,6 @@ define sudo::access (
owner => 'root', owner => 'root',
group => 0, group => 0,
mode => '0440', mode => '0440',
content => "# THIS FILE IS MANAGED BY PUPPET !\n${user} ${access}\n", content => "# THIS FILE IS MANAGED BY PUPPET !\n${real_user} ${access}\n",
} }
} }