We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a2d519 commit 52ab28cCopy full SHA for 52ab28c
manifests/user.pp
@@ -81,6 +81,6 @@
81
ensure => $real_sudo_ensure,
82
owner => 'root',
83
group => 'root',
84
- content => "Defaults:${user_name} !requiretty\r\n${user_name} ALL=(ALL) NOPASSWD: ALL",
+ content => template("${module_name}/user/sudo.erb"),
85
}
86
templates/user/sudo.erb
@@ -0,0 +1,2 @@
1
+Defaults:<%= @user_name %> !requiretty
2
+<%= @user_name %> ALL=(ALL) NOPASSWD: ALL
0 commit comments