]> git.openstreetmap.org Git - chef.git/commitdiff
Fix hostnamect call
authorTom Hughes <tom@compton.nu>
Wed, 13 May 2020 19:41:14 +0000 (20:41 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 13 May 2020 19:41:14 +0000 (20:41 +0100)
cookbooks/networking/recipes/default.rb

index 38c2156f2457d5544fc76588293dbc8e6f907542..6648998f054f9a5d540778164a18d2b6833d84bf 100644 (file)
@@ -182,8 +182,8 @@ ohai "reload-hostname" do
   plugin "hostname"
 end
 
   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
   notifies :reload, "ohai[reload-hostname]"
   not_if { ENV.key?("TEST_KITCHEN") || node[:hostnamectl][:static_hostname] == node[:networking][:hostname] }
 end