Skip to content

Commit 52ab28c

Browse files
author
Ilja Bobkevic
committedJun 4, 2015
Fix user sudoer configuration
1 parent 9a2d519 commit 52ab28c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
 

‎manifests/user.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,6 @@
8181
ensure => $real_sudo_ensure,
8282
owner => 'root',
8383
group => 'root',
84-
content => "Defaults:${user_name} !requiretty\r\n${user_name} ALL=(ALL) NOPASSWD: ALL",
84+
content => template("${module_name}/user/sudo.erb"),
8585
}
8686
}

‎templates/user/sudo.erb

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Defaults:<%= @user_name %> !requiretty
2+
<%= @user_name %> ALL=(ALL) NOPASSWD: ALL

0 commit comments

Comments
 (0)