From df2765f59711e4b6ca7d68d4573d4fdad09841d6 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 29 Apr 2020 22:38:36 +0100 Subject: [PATCH 1/1] Stop the hostname resource trying to configure the hosts file --- cookbooks/networking/recipes/default.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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" -- 2.39.5