boxen / puppet-java

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

Don't blow up when Java 8 is installed. #54

Closed MikeMcQuaid closed 9 years ago

MikeMcQuaid commented 9 years ago

Some users may have installed Java 8. This module should allow that and do what it can to be useful when that's the case rather than trying to install an older DMG which fails every time e.g.:

Puppet (err): Execution of '/usr/sbin/installer -pkg /private/tmp/dmg.tibvCt/Java 7 Update 71.pkg -target /' returned 1: installer: Error - You are trying to install Java 7 Update 71, however Java 8 Update 31 is already installed.
Visit java.com/newerversionexists for more information.
/Stage[main]/Java/Package[jre-7u71.dmg]/ensure (err): change from absent to present failed: Execution of '/usr/sbin/installer -pkg /private/tmp/dmg.tibvCt/Java 7 Update 71.pkg -target /' returned 1: installer: Error - You are trying to install Java 7 Update 71, however Java 8 Update 31 is already installed.
Visit java.com/newerversionexists for more information.

This should provide a nice transition to allow Java 8 support to be added to this module without forcing all users to use it yet.

CC @dgoodlad @rafaelfranca