Well based on all the feedback, I have decided to go the RPM route.  I
had thought about it earlier and it sounded silly to package a 1.8GB
gz file into an rpm.
However, below is what I have decided to do:

1. Install oracle with patches
2. Tar+gzip entire /opt/oracle directory  (954MB) vs 1.8GB install
files
3. Create an rpm spec file using the following script
http://www.mindtwist.de/main/linux/3-linux-tipps/32-how-to-convert-tar-gz-archive-to-rpm-.html
4. Require oracle-validated (currently using already )
5. Install via yum provider in puppet

The spec file is 1.4mb and has about 20K lines of code due to 19,500
files being put on disk on install.
The only improvement I could make on this is to split the big rpm into
four smaller rpms that require all the smaller rpms.
Is there a better way?

I found this script that will turn a tar.gz into an rpm spec file.
http://www.mindtwist.de/main/linux/3-linux-tipps/32-how-to-convert-tar-gz-archive-to-rpm-.html

On Jan 14, 1:39 am, Sven Sporer <[email protected]> wrote:
> > How can I tell if oracle is install or any program when its install without 
> > rpm?
> > How can I tell when the untar command is finished?  
> > What happens when it takes a while to transfer 1.8GB file?  
> > Does the "user => oracle" give me the environment of the user like su - 
> > oracle would?
> > Is there a provider for patching oracle?  Is there a patch type?
> > Is it bad to have lots of exec statements?
>
> Hi, I have a similar use case. I like the idea of installing via RPM,
> where the RPM is only a meta package which contains the install
> routine, but not the install media. The steps in the manifest are:
>
> 1) check if Oracle is not installed (ex: unless => "rpm -q
> oracle_database"; Facter fact)
> 2) if not installed, Mount[oracle_sources]
> 3) ensure Package[oracle_database] is installed
> 4a) in RPM: start runInstaller
> 4b) alternatively, you could place a script (containing the
> runInstaller command) with the software sources, and the RPM only
> calls "/sources/mount/oracle_install.cmd"
>
> What do you think?

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to