X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/45dde9418dd342bb1a632d82559201c0b3becf1a..1905f4711db7d0496edf82f6fac7971a1dcbddf9:/cookbooks/systemd/resources/tmpfile.rb diff --git a/cookbooks/systemd/resources/tmpfile.rb b/cookbooks/systemd/resources/tmpfile.rb index 8c21b6b6f..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 => "-" @@ -33,8 +35,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