The Problem
When I fire off oracles install script it returns successful midway but
continues to run after that (and you have to press enter at the very end) so
when the first part returns zero chef thinks its all good and reports that its
done, but really chef needs to wait another 15+ mins while oracle finishes
installing.
Little more detail
I am trying to setup a recipe to do an oracle 11gr2 install. It’s my first
recipe and so far most of it is going well.
I have got chef to setup all the pre-reqs, but I am having trouble getting it
to install oracle (but if I ssh into the node and run the same command it
works). I have screen shots of the output of the manually run and the chef run
but I think the description is good enough.
Thanks in advance for any help.
Have you dissected the oracle script? You say it returns 0 but it hasn't ended? Is it firing off another script in the background and then exiting? If so maybe you can break it apart and have chef execute the 2nd script.
Michael Glenney
Sent from my iPhone
On Jan 25, 2012, at 5:14 PM, Braden bwright@hwahomewarranty.com wrote:
The Problem
When I fire off oracles install script it returns successful midway but
continues to run after that (and you have to press enter at the very end) so
when the first part returns zero chef thinks its all good and reports that its
done, but really chef needs to wait another 15+ mins while oracle finishes
installing.
Little more detail
I am trying to setup a recipe to do an oracle 11gr2 install. It's my first
recipe and so far most of it is going well.
I have got chef to setup all the pre-reqs, but I am having trouble getting it
to install oracle (but if I ssh into the node and run the same command it
works). I have screen shots of the output of the manually run and the chef run
but I think the description is good enough.
Thanks in advance for any help.
On Wed, Jan 25, 2012 at 7:14 PM, Braden bwright@hwahomewarranty.com wrote:
The Problem
When I fire off oracles install script it returns successful midway but
continues to run after that (and you have to press enter at the very end) so
when the first part returns zero chef thinks its all good and reports that its
done, but really chef needs to wait another 15+ mins while oracle finishes
installing.
Little more detail
I am trying to setup a recipe to do an oracle 11gr2 install. It's my first
recipe and so far most of it is going well.
I have got chef to setup all the pre-reqs, but I am having trouble getting it
to install oracle (but if I ssh into the node and run the same command it
works). I have screen shots of the output of the manually run and the chef run
but I think the description is good enough.
Thanks in advance for any help.
Oracle installs are notoriously painful to automate. The install stops
in the middle, you have to jump to root to run a few scripts, and then
pick back up. FPM* wasn't around when I was trying to package it but
it might be worth giving it a shot. If you can package it with FPM
then it's just a simple install.
John
On Wed, Jan 25, 2012 at 7:14 PM, Braden bwright@hwahomewarranty.com wrote:
The Problem
When I fire off oracles install script it returns successful midway but
continues to run after that (and you have to press enter at the very end) so
when the first part returns zero chef thinks its all good and reports that its
done, but really chef needs to wait another 15+ mins while oracle finishes
installing.
Yup. Unfortunately this sort of "automated installation" is more of an
"answer script" than anything else.
Five years ago I created a build system for putting Oracle in a debian
package for internal use.
http://blog.loftninjas.org/2007/10/12/putting-oracle-database-in-a-deb-package-for-ubuntu/
The Oracle installer forks from the shell script, so the script exits
before the installer is finished. Maaaaybe you could prevent this, but
I suspect you're going to want to create some kind of a wrapper script
that runs the installer script and then watches for something, like
something indicating success in the installers log file, or the
installer process existing, or a service starting up.
Bryan