X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/18e12b0e123fc3e5f344682f884feabc12da0f5a..bd604913abe578f4ec4bcfa56cf3fa7bd63a9462:/cookbooks/systemd/resources/tmpfile.rb diff --git a/cookbooks/systemd/resources/tmpfile.rb b/cookbooks/systemd/resources/tmpfile.rb index 2e3470d16..38538e15f 100644 --- a/cookbooks/systemd/resources/tmpfile.rb +++ b/cookbooks/systemd/resources/tmpfile.rb @@ -1,8 +1,8 @@ # -# Cookbook Name:: systemd +# Cookbook:: systemd # Resource:: systemd_tmpfile # -# Copyright 2016, OpenStreetMap Foundation +# Copyright:: 2016, OpenStreetMap Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -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