puppet-jdk_oracle
puppet-jdk_oracle copied to clipboard
unable to update to newer version of java8
I started using this module to install Oracle Java 8 instead of 7 and the first pass was fine. Today, I tried updating to version 66 from 62 and it looks like puppet is installing the newer version but not setting the new version to the system default (it remains 62). It correctly installs version 66 on new nodes that did not have the previous version. Any ideas? Any help would be appreciated.
Here is what I'm using:
class { 'jdk_oracle':
version => '8',
default_java => true,
install_dir => '/usr/lib/jvm',
version_update => '66',
version_build => '17',
platform => 'x64',
}
I'm experiencing similar issues on Ubuntu 14.04.
I performed an install with the version set to 8, and no other options set. This results were that jdk 1.8.0_11 was installed configured correctly.
I then changed the install to point to the latest version_update and version_build on Oracle's website (at this time it was 74 build 02). This installed the new version and build as expected, but /etc/alternatives was still pointed at the previous version.
Running "update-alternatives --config java" shows
Selection Path Priority Status
------------------------------------------------------------
* 0 /opt/jdk1.8.0_11/bin/java 20000 auto mode
1 /opt/jdk1.8.0_11/bin/java 20000 manual mode
2 /opt/jdk1.8.0_74/bin/java 20000 manual mode
So it's adding it as told, but the action isn't what is expected when upgrading to a new version.
This was fixed just recently, but no release contains the fix yet (see: #55). You may want to download the current repo snapshot and see if it fixes the issue for you.
@tylerwalts: Maybe it's time for 1.4.1? :)
Thanks for the update @fraenki. Tested and works as advertised. :)
Neither 8.73, nor 8u74 can be installed:
Error: wget -c --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com" --header "Cookie: oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u74-b12/jdk-8u74-linux-x64.tar.gz" -O jdk-8u74-linux-x64.tar.gz returned 8 instead of one of [0]
Error: /Stage[main]/Jdk_oracle/Jdk_oracle::Install[jdk_oracle]/Exec[get_jdk_installer_8]/returns: change from notrun to 0 failed: wget -c --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com" --header "Cookie: oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u74-b12/jdk-8u74-linux-x64.tar.gz" -O jdk-8u74-linux-x64.tar.gz returned 8 instead of one of [0]
+1 to release 1.4.1 for the fix in #55