projects
/
chef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a97f73
)
Iterate jobs properly
author
Tom Hughes
<tom@compton.nu>
Sat, 15 Sep 2018 14:21:04 +0000
(15:21 +0100)
committer
Tom Hughes
<tom@compton.nu>
Sat, 15 Sep 2018 14:21:04 +0000
(15:21 +0100)
cookbooks/planet/templates/default/planet-update.erb
patch
|
blob
|
history
diff --git
a/cookbooks/planet/templates/default/planet-update.erb
b/cookbooks/planet/templates/default/planet-update.erb
index d002b4fbeec40315b379e738110369ff8fd5ef7d..dda8e5dfab1a95744b376d7dd691d0a590c73096 100644
(file)
--- a/
cookbooks/planet/templates/default/planet-update.erb
+++ b/
cookbooks/planet/templates/default/planet-update.erb
@@
-9,7
+9,7
@@
echo "Updating planet file..."
runuser -u planet -- /usr/local/bin/planet-update-file
echo "Running jobs..."
-<% node[:planet][:current][:jobs].each do |job| -%>
+<% node[:planet][:current][:jobs].each
_value
do |job| -%>
echo "Running '<%= job[:command] %>' as user '<%= job[:user] %>'..."