X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/aeaa46f3071de018b5c5e0f5678cb5b4082e3ddc..f8a576aca1270f703f38c3257cf533390692de06:/cookbooks/systemd/resources/tmpfile.rb?ds=sidebyside diff --git a/cookbooks/systemd/resources/tmpfile.rb b/cookbooks/systemd/resources/tmpfile.rb index 2c294b5ba..07c39d3a9 100644 --- a/cookbooks/systemd/resources/tmpfile.rb +++ b/cookbooks/systemd/resources/tmpfile.rb @@ -17,9 +17,11 @@ # 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