I wasn't aware that you could use the package resource for exe files since
it looked like it was limited to msi files.
I ended up crafting up this solution using exec resource
exec{"jdkinstaller":
command => "${::installer_dir}/jdk-6u30-windows-i586.exe /s
ADDLOCAL=\"ToolsFeature,DemosFeature,SourceFeature\" ",
creates => 'C:\Program Files\Java\jdk1.6.0_30\bin\javac.exe',
logoutput => 'true',
}
Still struggling to set the Global PATH variable in a nice way.
Corey
On Monday, October 15, 2012 11:45:25 PM UTC-5, wukong wrote:
> Hi guys,
> I have been trying to bootstrap a windows machine with puppet. I need to
> install java and setup the JAVA_HOME and add bin to the path variable of
> windows.
> I have tried using the package resource with the jdk setup but everytime I
> run the manifest puppet opens the setup wizard and waits for me to do
> something.
> Am I doing something wrong or is this the right behavior? Also is there a
> way to do this as silent install?
>
> Here is my manifest.
>
> package {"java" :
> ensure => installed,
> provider => "windows",
> source => "C:/Manifests/installables/jdk-6u35-windows-i586.exe",
> }
>
> Thank you.
>
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-users/-/IJlOOM-dRZUJ.
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.