Hi All,
I have written this chef recipe below,
This is what i expect/require
* The bash resource shall fail is the shell script i am running below fails,
* the cookbook file should not say up to date if the bash script below fail
Please advise
cookbook_file "#{node[:mule][:deploy_dir]}/x-billing-1.1.0-SNAPSHOT.zip" do
source "x-billing-1.1.0-SNAPSHOT.zip"
mode 777
notifies :run, "bash[install_bill]", :immediately
end
# Run a bash shell - download and extract tomcat
bash "install_bill" do
cwd "#{node[:mule][:bin_dir]}"
code <<-EOH
./deploy.sh -v x-billing-1.1.0-SNAPSHOT -e $env ebpi x-billing
sleep 30
echo " i am done deploying the app"
EOH
returns 0
action :nothing
end