Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

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

Merged
merged 1 commit into from
Mar 9, 2015
Merged

Conversation

MikeMcQuaid
Copy link
Contributor

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

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.
MikeMcQuaid added a commit that referenced this pull request Mar 9, 2015
Don't blow up when Java 8 is installed.
@MikeMcQuaid MikeMcQuaid merged commit 35f27ea into master Mar 9, 2015
@MikeMcQuaid MikeMcQuaid deleted the fix-java-8 branch March 9, 2015 10:18
MikeMcQuaid added a commit that referenced this pull request Jun 5, 2015
Previously (#54) I handled the case where Java 8 was installed but this
just looked at the version for the JDK and tried to install the JRE
assuming they had the same version. Instead let's add a
`java_jre_version` fact and query that for the JRE and allow installing
one or the other depending on the installed version.
MikeMcQuaid added a commit that referenced this pull request Jun 5, 2015
Previously (#54) I handled the case where Java 8 was installed but this
just looked at the version for the JDK and tried to install the JRE
assuming they had the same version. Instead let's add a
`java_jre_version` fact and query that for the JRE and allow installing
one or the other depending on the installed version.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant