]> git.openstreetmap.org Git - chef.git/commitdiff
Stop the hostname resource trying to configure the hosts file
authorTom Hughes <tom@compton.nu>
Wed, 29 Apr 2020 21:38:36 +0000 (22:38 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 29 Apr 2020 21:38:36 +0000 (22:38 +0100)
cookbooks/networking/recipes/default.rb

index 321109a1de0d04127c0ee4a0ecb90784f5552768..4e496439bf99642e7b295618e1e7825cc935a4e4 100644 (file)
@@ -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"