X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/2bd7d1dd8dcc3abb3eda77447182fda66c631ae6..168f7ba7c89d05201ea8e38a6b691e69557cd59d:/cookbooks/networking/recipes/default.rb?ds=sidebyside diff --git a/cookbooks/networking/recipes/default.rb b/cookbooks/networking/recipes/default.rb index 38c2156f2..6648998f0 100644 --- a/cookbooks/networking/recipes/default.rb +++ b/cookbooks/networking/recipes/default.rb @@ -182,8 +182,8 @@ ohai "reload-hostname" do plugin "hostname" end -execute "hostnamectl-set-static" do - command "hostnamectl set-static #{node[:networking][:hostname]}" +execute "hostnamectl-set-hostname" do + command "hostnamectl set-hostname #{node[:networking][:hostname]}" notifies :reload, "ohai[reload-hostname]" not_if { ENV.key?("TEST_KITCHEN") || node[:hostnamectl][:static_hostname] == node[:networking][:hostname] } end