X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/45dde9418dd342bb1a632d82559201c0b3becf1a..87655058a50a160829441281f58f5a78441302f4:/cookbooks/systemd/resources/tmpfile.rb diff --git a/cookbooks/systemd/resources/tmpfile.rb b/cookbooks/systemd/resources/tmpfile.rb index 8c21b6b6f..38538e15f 100644 --- a/cookbooks/systemd/resources/tmpfile.rb +++ b/cookbooks/systemd/resources/tmpfile.rb @@ -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