138 Commits

Author SHA1 Message Date
Eimhin Laverty
68fb4fa498 (MODULES-8234) - Upgrade Oracle Java version to 8u192 2018-11-09 11:05:24 +00:00
Otto Jongerius
0fd7c00fa9 upgrade Oracle Java 8 to 181, make it the default release 2018-11-05 16:06:43 +13:00
david22swan
de89b1f2da Merge pull request #315 from olevole/master
MODULES-7819 fix set JAVA_HOME environments on FreeBSD platform
2018-11-02 13:46:10 +00:00
Dennis Ploeger
b53a78fbe8 Support for installing JCE. Fixes MODULES-1681 (#326)
* Support for installing JCE. Fixes MODULES-1681

* Disabled oracle tests. Only to be enabled, if the other configuration options match the current java download URL provided by Oracle.
2018-10-18 10:07:37 +01:00
Michael Moll
911df2d7b7 Fix OpenJDK paths on Debian based OS with ARM 2018-10-12 16:55:50 +02:00
david22swan
61ffb4bf1d Merge pull request #330 from dodevops/MODULES-8085
Optimized code for making java::oracle atomic. Fixes MODULES-8085
2018-10-12 14:47:36 +01:00
david22swan
c6acb9906c Merge pull request #322 from syseleven/MODULES-8025
(MODULES-8025) Switch default for Ubuntu 18.04 to 11
2018-10-12 11:50:36 +01:00
Dennis Ploeger
5f1b7ecea8 Optimized code for making java::oracle atomic. Fixes MODULES-8085 2018-10-12 07:43:57 +02:00
Eimhin Laverty
89aa846909 (MODULES-7050) - Fix OracleJDK reinstalling on Puppet runs 2018-10-03 17:26:03 +01:00
Matthias Baur
60c93866b1 (MODULES-8025) Switch default for Ubuntu 18.04 to 11
This is needed to get the default Java version rollout with Ubuntu
18.04.
2018-10-01 18:08:30 +02:00
olevole
728fc7e02d fix set JAVA_HOME environments on FreeBSD platform
FreeBSD do not use /etc/environment file for global variables. Instead we use two
places to set the variable:
  - /etc/profile for sh(1)
  - /etc/csh.login for csh(1) which is the default shell for FreeBSD

Fixes for MODULES-7819 issue
2018-09-20 14:22:37 +03:00
Carlo Rengo
6ba478375a Remove ensure_resource to avoid potential conflict
This was probably unintended and could cause conflicts where
stdlib::stages isn't desired.
2018-02-02 10:21:53 +01:00
mirespace
697c1911f9 $java_home for SLES 11.4
Fixed java_home for matching package to be installed
2018-01-16 11:14:51 +01:00
Martin Jackson
71554f3067 Add support for Ubuntu artful (17.10) and bionic (18.04 to be) 2017-11-20 21:11:32 -06:00
Sebastian Reitenbach
bdfc567c18 OpenBSD doesn't have /etc/environment, therefore there is no
need to fiddle with it. The default case statement, "do nothing"
is all fine here.

Facter::Util::Resolution.with_env is long time gone since
Facter > 2.x. That was even longer before introduced by me.
Remove that OpenBSD special case in the java_version fact,
and assume that $PATH is properly set in order to find
the 'java' binary.

Additionally confine the java_default_home and java_libjvm_path
to OpenBSD kernel as well. Add some flesh to the java_default_home
fact to allow it to find the java binary.
2017-11-15 14:37:42 +00:00
Michael Baker
db30eb9e2d Adding support for Ubuntu (#243)
* Translate amd64

* Fix the path creation on exec
2017-11-15 14:36:10 +00:00
Jan Vansteenkiste
c40b061d97 (MODULES-4069) Fail when required params are not available in params.
When overriding all values required for the java setup, there is
no need to fail if params.pp does not support the package.
2017-09-26 07:37:41 +02:00
Andrew N Golovkov
525016ec02 Support for Ubuntu 17.04 Zesty Zapus 2017-09-06 20:44:48 +03:00
Shaleen Gupta
43aa9af1b2 Add support for CloudLinux (#251)
Fix the fail "unsupported os CloudlLinux".
2017-08-01 13:30:38 +01:00
Kilian Engelhardt
6951263d4c fix indentation and remove a white line 2017-06-21 11:26:24 +02:00
Kilian Engelhardt
0bcdd2bc2f add basic arch linux support 2017-06-21 10:59:39 +02:00
Helen
184c745e82 Revert "Release Mergeback 2.1.0" 2017-06-15 11:03:44 +01:00
Hunter Haugen
2c8b460b98 Release 2.1.0 2017-06-13 11:14:20 -07:00
Paula McMaw
a09bc3aa52 Merge pull request #236 from HelenCampbell/adddocsfix
MODULES-5047 - Update java::oracle class to work with new download URLs
2017-06-13 15:15:59 +01:00
Michael Watters
08423fb170 MODULES-5047 - Update java::oracle class to work with new download URLs
Oracle appears to have changed the JDK URL structure starting with Java 8u121.
This update adds a hash to store the values used by Oracle's java download site
along with a case statement to lookup the proper key for the java release being
installed.
2017-06-13 14:57:18 +01:00
Eric Putnam
da3e40903d Merge pull request #235 from hunner/fix_rhel7_home
(maint) Update java_home for redhat 7
2017-06-12 15:13:16 -07:00
Hunter Haugen
e234375924 (maint) Update java_home for redhat systems
It appears that redhat 7 and variants no longer have
java-1.7.0-openjdk-$arch symlinks. All redhat 6/7's both 32 and 64 bit
seem to include a java-1.7.0 symlink though.
2017-06-12 14:54:22 -07:00
Stefan Pijnappels
05b9d1c2ba MODULES-5058 Allow a complete URL to be passed to the java::oracle class
This provides a workaround  to the issue of Oracle changing it's URL structure which breaks the dynamic URL building in the module.
It allows a complete URL to be passed as an alternative to one built by the logic in the module, and allows the rest of the module to function as expected when this situation is encountered.

Changes made to manifests/oracle.pp to pass URL in `url` parameter (if defined) to the `source` directive of the archive resource which fetches the installer package.
README.markdown has been updated to document the additional parameter, as well as a note added to known issues describing it's operation.
A test has been added to spec/defines/oracle_spec.rb to verify the correct package is present in the tmp archive location. The spec tests have passed and the revised workflow has been tested in a lab environment and found to be working.
2017-06-08 10:29:58 +01:00
Tim Meusel
cf14116641 add datatypes for all parameters 2017-06-07 23:28:06 +02:00
Tim Meusel
66662bf4e9 replace validate_* calls with datatypes 2017-06-07 11:17:11 +02:00
Eric Putnam
7f843d4b5b (maint) facts update oracle.pp
puppet-archive, a puppetlabs-java dependency, is now using structured
facts on master. this commit changes the minimum number of facts from
legacy to structured so that spec tests continue to pass
2017-05-30 13:54:03 -07:00
Eric Putnam
755aab753e Merge pull request #221 from traylenator/yakkety
Support for Ubuntu 16.10 - Yakkety Yak
2017-05-24 12:53:42 -07:00
Hailey Martin
b25212a04e Update OpenJDK packages to 1.8.0 for SLES 12 service packs 2017-05-15 20:37:26 +10:00
Bryan Stopp
b266755711 (MODULES-4751) Fix Archive Order of Operations
Without this patch the Oracle based package installations fail due to missing dependency: the package. The package installation command is defined and applied before the archive resource downloads the remote file. This patch correctly applies the order of operations: download package, install package.
2017-04-20 14:17:49 -05:00
Wilson McCoubrey
a8448286f7 [maint] Fix puppet-lint warnings introduced with 2.2.0 puppet-lint release 2017-03-29 15:49:27 +01:00
Steve Traylen
8627e7ddd4 Support for Ubuntu 16.10 - Yakkety Yak 2017-03-24 22:28:22 +01:00
Steve Traylen
580d875b9a Support SLC operatingsystem
Scientific Linux CERN has a facter operatingsystem
value of SLC. Other than that identical to SL.
2017-03-10 16:52:19 +01:00
TP Honey
866eae1393 Merge pull request #209 from hedzr/master
add 'Amazon Linux AMI' supports
2016-12-23 11:41:16 +00:00
Tyler Langlois
70b6b81ec9 Update SLES 11sp4 packages to Java 1.7.1 (#178) 2016-12-23 11:36:22 +00:00
hedzr
c2420550c6 for 'Amazon Linux AMI' supports
[Amazon Linux AMI](https://aws.amazon.com/cn/amazon-linux-ami/2016.09-release-notes/) is another RedHat-like os image, openjdk-7 was shipped in that image but we  want more choices or jdk 8. i'd been tested ok for oracle jdk installation on a 't2.micro' instance.
2016-12-15 11:08:55 +08:00
Eric Putnam
9ce23de1c2 Merge pull request #188 from MiamiOH/archive_proxy_server
Add proxy options for Oracle Java
2016-11-28 16:15:21 -08:00
Eric Putnam
ae4ab7736c Merge pull request #191 from bodik/lsbdistcodename-stretch
support java on debian stretch
2016-11-28 15:47:38 -08:00
Eric Putnam
efb9823d3c uses /etc/profile/ for solaris 2016-11-23 10:58:16 -08:00
Chris Edester
25c1ac83ce Add proxy options for Oracle Java 2016-11-03 13:32:01 -04:00
Chris Edester
693d980c2b java::oracle Do not download archive if already installed
We are having issues on reboot of boxes. It tries to download to tmp even though already installed, which would be fine,
but the version is no longer available.
This results in curl downloading something to tmp every time puppet runs, which eventualy fills up tmp :(
2016-11-01 12:53:46 -04:00
Gregor Zurowski
2fe6ff23b3 Fix naming of version_major and version_minor parameters in documentation.
Signed-off-by: Gregor Zurowski <gregor@zurowski.org>
2016-10-18 16:10:56 +02:00
Hunter Haugen
06c3f9f112 Merge pull request #184 from ntpttr/fix/master/modules-2971
(MODULES-2971) Add java_home to all operating systems
2016-10-17 10:54:06 -07:00
Nate Potter
9df2f3d2a6 Change exec to file_line
This commit updates the setting of JAVA_HOME in /etc/environment
to be done with file_line rather than exec.
2016-10-14 09:10:53 -07:00
Gregor Zurowski
2a8236e6d1 Allow targeting specific major/minor Oracle JDK versions (#192)
* Allow targeting specific major/minor Oracle JDK versions

Expose two new parameters 'version_major' and 'version_minor' to
allow users targeting specific Oracle JDK versions.

Signed-off-by: Gregor Zurowski <gregor@zurowski.org>

* Fix lint validation issues

Signed-off-by: Gregor Zurowski <gregor@zurowski.org>
2016-10-07 19:48:58 +02:00
ntpttr
9093da3b32 Update config.pp 2016-09-20 14:05:18 -07:00