]> 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 2c294b5ba3a23559aad8ca120d14bd3b391aa64b..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 => "-"
@@ -34,7 +34,7 @@ action :create do
     owner "root"
     group "root"
     mode "644"
-    variables new_resource.to_hash
+    variables new_resource.to_hash.merge(:path => new_resource.path)
   end
 
   execute "systemd-tmpfiles" do