]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/networking/recipes/default.rb
Stop the hostname resource trying to configure the hosts file
[chef.git] / 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"