X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/45dde9418dd342bb1a632d82559201c0b3becf1a..29b8151b8011f934785f3434e3826eee78e61943:/cookbooks/systemd/resources/tmpfile.rb?ds=inline 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