This edits templates/user_groups.erb to bring in tolerance for missing variables.
Patch 1: If someone besides sudo::allow wants to use the template, it's not really necessary to provide $groups = [] when the template can simply ignore the groups section if the variable isn't there.
Patch 2: This allows for a conf file for users/groups that are allowed to sudo without a password. The template change is the important part, but I've added the Boolean to sudo::allow to make it usable there. By default, nopasswd is false, meaning someone must set a flag in order to let people sudo passwordless.
This edits templates/user_groups.erb to bring in tolerance for missing variables. Patch 1: If someone besides sudo::allow wants to use the template, it's not really necessary to provide $groups = [] when the template can simply ignore the groups section if the variable isn't there. Patch 2: This allows for a conf file for users/groups that are allowed to sudo without a password. The template change is the important part, but I've added the Boolean to sudo::allow to make it usable there. By default, nopasswd is false, meaning someone must set a flag in order to let people sudo passwordless.