From 936fb6f747247eaada016362d7ef5671dd4a94c3 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Tue, 25 Jun 2013 09:47:14 -0700 Subject: [PATCH] Do not include fqdn within loopback --- recipes/fqdn.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/fqdn.rb b/recipes/fqdn.rb index ad74231..b99c36f 100644 --- a/recipes/fqdn.rb +++ b/recipes/fqdn.rb @@ -9,8 +9,8 @@ hosts_file_entry '127.0.0.1' do action :nothing - hostname node[:hosts_file][:fqdn] - aliases [node[:hosts_file][:hostname], 'localhost'] + hostname 'localhost' + aliases [node[:hosts_file][:hostname]] not_if do node[:fqdn] == node[:dns][:entry][:name] end