]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/systemd/resources/tmpfile.rb
blogs: fix build in test
[chef.git] / cookbooks / systemd / resources / tmpfile.rb
index 2c294b5ba3a23559aad8ca120d14bd3b391aa64b..07c39d3a9ccc62908428777f4aa6a5488831e3a4 100644 (file)
 # limitations under the License.
 #
 
+unified_mode true
+
 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 +36,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