]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/systemd/resources/tmpfile.rb
Allow path accessibility to be configured for systemd services
[chef.git] / cookbooks / systemd / resources / tmpfile.rb
index 8c21b6b6ff3462a79f2ae0c386627946cde88309..38538e15f22bd0aaace63faa7fd48a56eb85f964 100644 (file)
@@ -19,7 +19,7 @@
 
 default_action :create
 
-property :type, String, :required => true
+property :type, String, :required => [:create]
 property :path, String, :name_property => true
 property :mode, String, :default => "-"
 property :owner, String, :default => "-"
@@ -33,8 +33,8 @@ action :create do
     source "tmpfile.erb"
     owner "root"
     group "root"
-    mode 0o644
-    variables new_resource.to_hash
+    mode "644"
+    variables new_resource.to_hash.merge(:path => new_resource.path)
   end
 
   execute "systemd-tmpfiles" do