Commit 6d697907 authored by Christopher Huhn's avatar Christopher Huhn
Browse files

Prevent empty node['fqdn'] from breaking sudo and chef config

parent 577743c0
......@@ -16,4 +16,4 @@ supports 'debian'
depends 'line', '< 1.0'
depends 'chef-vault'
version '1.61.3'
version '1.61.4'
<%= template_header %>
# frozen_string_literal: true
<%- nodename = @node_name || node['fqdn'] -%>
<%- if nodename && ! @skip_nodename -%>
<%- nodename = @node_name || node['fqdn'] || '' -%>
<%- unless nodename.empty? || @skip_nodename -%>
node_name '<%= nodename %>'
<%- end -%>
......
......@@ -10,7 +10,9 @@ Defaults mailfrom="<%= @mailfrom %>"
Defaults mailsub="<%= @mailsub || '*** SECURITY information for %h ***' %>"
# Host alias specification
<%- if node['fqdn'] -%>
Host_Alias LOCAL = <%= node['fqdn'] %>
<%- end -%>
# User alias specification
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment