make the user default work
This commit is contained in:
parent
f02dcffe22
commit
b3d158a696
1 changed files with 2 additions and 2 deletions
|
@ -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",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue