<%= template_header %>

Defaults        env_reset
Defaults        mail_badpass
Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
Defaults        mailto="<%= @mailto || 'root' %>"

# Host alias specification
Host_Alias  LOCAL = <%= node['fqdn'] %>

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL:ALL) ALL

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on "#include" directives:
#includedir /etc/sudoers.d

<%= template_header %>

Defaults        env_reset
Defaults        mail_badpass
Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
Defaults        mailto="<%= @mailto || 'root' %>"
<%- if @mailfrom -%>
Defaults        mailfrom="<%= @mailfrom %>"
<%- end -%>
Defaults        mailsub="<%= @mailsub || '*** SECURITY information for %h ***' %>"

# Host alias specification
Host_Alias  LOCAL = <%= node['fqdn'] %>

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL:ALL) ALL

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on "#include" directives:
#includedir /etc/sudoers.d

Add mailfrom and mailsub to sudoers template
Add mailfrom and mailsub to sudoers template
