]> git.openstreetmap.org Git - chef.git/commitdiff
Add path attribute to template arguments
authorTom Hughes <tom@compton.nu>
Thu, 14 May 2020 18:46:52 +0000 (19:46 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 6 Aug 2020 17:46:16 +0000 (18:46 +0100)
cookbooks/systemd/resources/tmpfile.rb

index 8eaf47316372e7b22ee3003462c2f617c927c1b2..38538e15f22bd0aaace63faa7fd48a56eb85f964 100644 (file)
@@ -34,7 +34,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