boxen / puppet-java

Install Java
http://boxen.github.com
MIT License
13 stars 55 forks source link

Detect when more up to date version installed and do not re-install #48

Open petems opened 9 years ago

petems commented 9 years ago
Error: Execution of '/usr/sbin/installer -pkg /private/tmp/dmg.FVhord/Java 7 Update 21.pkg -target /' returned 1: installer: Error - A higher version of the JRE is already installed on this system

Error: /Stage[main]/Java/Package[jre-7u21.dmg]/ensure: change from absent to present failed: Execution of '/usr/sbin/installer -pkg /private/tmp/dmg.FVhord/Java 7 Update 21.pkg -target /' returned 1: installer: Error - A higher version of the JRE is already installed on this system
dgoodlad commented 9 years ago

Could you help us out and figure out how to detect the current patchlevel?

petems commented 9 years ago

Yep! Got a basic spike idea here:

https://github.com/petems/puppet-java/tree/dont_update_when_java_version_higher

Sorry, I forgot I posted this without a full summary, I meant to say what the issue was and my plan to fix it :)

MikeMcQuaid commented 9 years ago

@petems Is this closeable?

petems commented 9 years ago

@mikemcquaid Not quite yet, but I can probably just extend the work you did in https://github.com/boxen/puppet-java/pull/54 to get it fixed :+1:

MikeMcQuaid commented 9 years ago

@petems Sounds great :metal:

petems commented 9 years ago

@mikemcquaid #55 will help with this, can I get a merge?

With the eventual goal of switching up to allow users to choose between Java 7 and 8! :+1: