]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/openvpn/recipes/default.rb
Use strings for file modes
[chef.git] / cookbooks / openvpn / recipes / default.rb
index 2446fe97090aadf5b5db4a24a0c9551e6079b713..9cae35c67eb5ffcdcb5c48b29c35abe1c18a0958 100644 (file)
@@ -55,7 +55,7 @@ node[:openvpn][:tunnels].each do |name, details|
     file "/etc/openvpn/#{name}.key" do
       owner "root"
       group "root"
-      mode 0o600
+      mode "600"
       content peer[:openvpn][:keys][name]
     end
   end
@@ -65,7 +65,7 @@ node[:openvpn][:tunnels].each do |name, details|
       source "tunnel.conf.erb"
       owner "root"
       group "root"
-      mode 0o644
+      mode "644"
       variables :name => name,
                 :address => node[:openvpn][:address],
                 :port => node[:openvpn][:tunnels][name][:port],