]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/openssh/recipes/default.rb
Switch machines in Dublin to use nftables
[chef.git] / cookbooks / openssh / recipes / default.rb
index 78df22c5e418b0930e7d0984e9ff68e6b7377cdf..06a88e8b5613a9d8a31b353c2ef37f0b3e158f2e 100644 (file)
@@ -27,7 +27,7 @@ template "/etc/ssh/sshd_config.d/chef.conf" do
   source "sshd_config.conf.erb"
   owner "root"
   group "root"
   source "sshd_config.conf.erb"
   owner "root"
   group "root"
-  mode 0o644
+  mode "644"
   notifies :restart, "service[ssh]"
   only_if { Dir.exist?("/etc/ssh/sshd_config.d") }
 end
   notifies :restart, "service[ssh]"
   only_if { Dir.exist?("/etc/ssh/sshd_config.d") }
 end
@@ -73,7 +73,7 @@ end
 
 template "/etc/ssh/ssh_known_hosts" do
   source "ssh_known_hosts.erb"
 
 template "/etc/ssh/ssh_known_hosts" do
   source "ssh_known_hosts.erb"
-  mode 0o444
+  mode "444"
   owner "root"
   group "root"
   backup false
   owner "root"
   group "root"
   backup false