On Sun, May 18, 2014 at 10:57 AM, Jim Ficarra <[email protected]> wrote:
> Trying the following in both package and exec providers
>
> D:\Build\Oracle11gclient\setup.exe -silent -waitforcompletion -noconsole
> -responseFile D:\Build\Ora11gclient.rsp
>
> I can run this at the command line and install Oracle 11g client
> silently.Once I put it in a package or try to exec it, I get as far as the
> installer auto-unzipping the files needed for the install but then it just
> hangs and after 5 mins, puppet times out. The processes are just hung.
>
> I've tried the following two ways (I have a custom fact that determines
> if oracle is installed which works correctly - if I install oracle outside
> of puppet the fact correctly determines if it's installed). The files are
> placed in the source path by other statements that work as expected.
>
> Attempted providers (unsuccessful)
> --------------------------------
> exec {'OracleInstall':
> command => 'D:\Build\Oracle11gclient\setup.exe -silent
> -waitforcompletion -noconsole -responseFile D:\Build\Ora11gclient.rsp',
> }
>
> exec {'OracleInstall':
> command => ' & "D:\Build\Oracle11gclient\setup.exe" -silent
> -waitforcompletion -noconsole -responseFile D:\Build\Ora11gclient.rsp',
> provider => powershell,
> }
>
> #command => '& "D:\Build\Oracle 11g client\setup.exe" -silent
> -waitforcompletion -noconsole -responseFile D:\Build\Ora11gclient.rsp',
>
> package {'OracleInstall':
> source => 'D:\Build\Oracle11gclient\setup.exe',
> install_options => ['-silent', '-waitforcompletion', '-noconsole'.
> '-responseFile D:\Build\Ora11gclient.rsp'],
>
Shouldn't that be:
install_options => ['-silent', '-waitforcompletion', '-noconsole'.
'-responseFile', 'D:\Build\Ora11gclient.rsp'],
Otherwise puppet will think you're passing a single argument with spaces in
it, and will quote it.
}
> --------------------------------
>
> When either of these run, it kicks off - I see the unzip.exe kick off and
> it begins to unpack the files. I then see the java installer process and
> setup.exe in task manager but after a few seconds it stops and just hangs.
> The installActions file shows the following - which is not complete
> compared to when I run the puppet module locally on the box (puppet apply
> oracle_install.pp).
>
> Contents of installAction log
> -----------------------------------------
> Using paramFile: D:\Build\Oracle11gclient\install\oraparam.ini
>
> The commandline for unzip:
> D:\Build\Oracle11gclient\install\unzip -qqqo
> ..\stage\Components\oracle.jdk\1.5.0.17.03\1\DataFiles/"*.jar" -d
> "C:\Users\!CDCPU~1\AppData\Local\Temp\OraInstall2014-05-18_12-52-59PM"
> ---------------------------------------------
>
> So, it seems it's getting as far as unzipping but then just hangs - I'm
> thinking something is getting orphaned somewhere but I can't figure it out.
>
>
> Hoping someone has some insight or suggestions.
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/99bee03b-e71d-40fb-9546-d60359c5af3d%40googlegroups.com<https://groups.google.com/d/msgid/puppet-users/99bee03b-e71d-40fb-9546-d60359c5af3d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
Josh Cooper
Developer, Puppet Labs
*Join us at PuppetConf 2014 <http://www.puppetconf.com/>, September
22-24 in San Francisco*
*Register by May 30th to take advantage of the Early Adopter discount
<http://links.puppetlabs.com/puppetconf-early-adopter> **—**save $349!*
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/CA%2Bu97unsVV_H2UL%3DrQgi8p6yg-Vm3u-%2BXt60%3DZpJZN4ky5o%2BGA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.