stack-kicker 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/stack-kicker/version.rb +1 -1
- data/lib/stack.rb +3 -2
- metadata +1 -1
data/lib/stack-kicker/version.rb
CHANGED
data/lib/stack.rb
CHANGED
|
@@ -385,8 +385,9 @@ cookbook_path [ '<%=config[:stackhome]%>/cookbooks' ]
|
|
|
385
385
|
end
|
|
386
386
|
|
|
387
387
|
# default to execing post install scripts in stackhome is a cwd wasn't set
|
|
388
|
+
# (cwd is calculated relative to stackhome)
|
|
388
389
|
if role_details[:post_install_cwd].nil?
|
|
389
|
-
role_details[:post_install_cwd] =
|
|
390
|
+
role_details[:post_install_cwd] = '/.'
|
|
390
391
|
end
|
|
391
392
|
|
|
392
393
|
(1..role_details[:count]).each do |p|
|
|
@@ -749,7 +750,7 @@ cookbook_path [ '<%=config[:stackhome]%>/cookbooks' ]
|
|
|
749
750
|
|
|
750
751
|
# run any post-install scripts, these are run from the current host, not the nodes
|
|
751
752
|
if role_details[:post_install_script]
|
|
752
|
-
Logger.debug { "This role has a post-install script (#{role_details[:post_install_script]}, preparing to run" }
|
|
753
|
+
Logger.debug { "This role has a post-install script (#{role_details[:post_install_script]}), preparing to run" }
|
|
753
754
|
# convert when we got passed to an absolute path
|
|
754
755
|
post_install_script_abs = File.realpath(config[:stackhome] + '/' + role_details[:post_install_script])
|
|
755
756
|
post_install_cwd_abs = File.realpath(config[:stackhome] + '/' + role_details[:post_install_cwd])
|