In my release deployment through chef, I would like to execute DBA actions
This is the code snippet that I will be using to run DBA actions.
node[:release][:rel_dir] is same as d:\release.
powershell_script ‘Execute DBA Actions’ do
Start-Process -WorkingDirectory “D:\release” -FilePath “cmd.exe”
-ArgumentList “/k UpdateDB.bat zeyt sa abcde” -Verb runAs
here UpdateDb.bat is batch script that will accept arguments as
database_name, username and password . the syntax is
When I am executing powershell script this way, updateDB.bat is executed
through cmd.exe and chef has no control over it. Is it fine to execute a
second script this way??
or do I need to put some guards to check until the script is executed
completely like WaitforExit().
Any idea how to deal these use cases.