From b3d158a696f7e18d89e5db4cfdd3d695a498a96f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Sat, 22 Jun 2013 12:50:49 -0400 Subject: [PATCH] make the user default work --- manifests/access.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/access.pp b/manifests/access.pp index 36fd610..c496304 100644 --- a/manifests/access.pp +++ b/manifests/access.pp @@ -4,7 +4,7 @@ define sudo::access ( $access = 'ALL=(ALL) ALL' ) { if $user == undef { - $user = $name + $real_user = $name } # there shouldn't be a dot in those filenames! file { "${sudo::sudoersdir}/01-user_access-${title}": @@ -12,6 +12,6 @@ define sudo::access ( owner => 'root', group => 0, 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", } }