From: Tom Hughes Date: Wed, 29 Apr 2020 21:38:36 +0000 (+0100) Subject: Stop the hostname resource trying to configure the hosts file X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/df2765f59711e4b6ca7d68d4573d4fdad09841d6?hp=b29516c0cce8ee5080beb5f1e4c15622444f18ed Stop the hostname resource trying to configure the hosts file --- diff --git a/cookbooks/networking/recipes/default.rb b/cookbooks/networking/recipes/default.rb index 321109a1d..4e496439b 100644 --- a/cookbooks/networking/recipes/default.rb +++ b/cookbooks/networking/recipes/default.rb @@ -177,7 +177,9 @@ package "cloud-init" do action :purge end -hostname node[:networking][:hostname] +hostname node[:networking][:hostname] do + ipaddress nil +end template "/etc/hosts" do source "hosts.erb"