X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/204405570f4bf5e8a2b0400d000fc364e5e56f74..38242c2ddcec93702f548cc9f682a6db22880f6c:/cookbooks/networking/recipes/default.rb diff --git a/cookbooks/networking/recipes/default.rb b/cookbooks/networking/recipes/default.rb index 89e8198e2..321109a1d 100644 --- a/cookbooks/networking/recipes/default.rb +++ b/cookbooks/networking/recipes/default.rb @@ -177,18 +177,7 @@ package "cloud-init" do action :purge end -execute "hostname" do - action :nothing - command "/bin/hostname -F /etc/hostname" -end - -template "/etc/hostname" do - source "hostname.erb" - owner "root" - group "root" - mode 0o644 - notifies :run, "execute[hostname]" -end +hostname node[:networking][:hostname] template "/etc/hosts" do source "hosts.erb"