Version information
This version is compatible with:
- Puppet Enterprise 2023.8.x, 2023.7.x, 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x
- Puppet >= 7.0.0 < 9.0.0
- , , , , , , ,
Start using this module
Add this module to your Puppetfile:
mod 'puppetlabs-java', '11.0.1'
Learn more about managing modules with a PuppetfileDocumentation
java
Table of Contents
- Overview
- Module Description - What the module does and why it is useful
- Setup - The basics of getting started with the java module
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
- License
- Development - Guide for contributing to the module
Overview
Installs the correct Java package on various platforms.
Module Description
The java module can automatically install Java jdk or jre on a wide variety of systems. Java is a base component for many software platforms, but Java system packages don't always follow packaging conventions. The java module simplifies the Java installation process.
Setup
Beginning with the java module
To install the correct Java package on your system, include the java
class: include java
.
Usage
The java module installs the correct jdk or jre package on a wide variety of systems. By default, the module installs the jdk package, but you can set different installation parameters as needed. For example, to install jre instead of jdk, you would set the distribution parameter:
class { 'java':
distribution => 'jre',
}
To install the latest patch version of Java 8 on CentOS
class { 'java' :
package => 'java-1.8.0-openjdk-devel',
}
The defined type java::download
installs one or more versions of Java SE from a remote url. java::download
depends on puppet/archive.
To install Java to a non-default basedir (defaults: /usr/lib/jvm for Debian; /usr/java for RedHat):
java::download { 'jdk8' :
ensure => 'present',
java_se => 'jdk',
url => 'http://myjava.repository/java.tgz",
basedir => '/custom/java',
}
AdoptOpenJDK
The defined type java::adopt
installs one or more versions of AdoptOpenJDK Java. java::adopt
depends on puppet/archive.
java::adopt { 'jdk8' :
ensure => 'present',
version => '8',
java => 'jdk',
}
java::adopt { 'jdk11' :
ensure => 'present',
version => '11',
java => 'jdk',
}
To install a specific release of a AdoptOpenJDK Java version, e.g. 8u202-b08, provide both parameters version_major
and version_minor
as follows:
java::adopt { 'jdk8' :
ensure => 'present',
version_major => '8u202',
version_minor => 'b08',
java => 'jdk',
}
To install AdoptOpenJDK Java to a non-default basedir (defaults: /usr/lib/jvm for Debian; /usr/java for RedHat):
java::adopt { 'jdk8' :
ensure => 'present',
version_major => '8u202',
version_minor => 'b08',
java => 'jdk',
basedir => '/custom/java',
}
To ensure that a custom basedir is a directory before AdoptOpenJDK Java is installed (note: manage separately for custom ownership or perms):
java::adopt { 'jdk8' :
ensure => 'present',
version_major => '8u202',
version_minor => 'b08',
java => 'jdk',
manage_basedir => true,
basedir => '/custom/java',
}
Adoptium Temurin
Adoptium Temurin is the successor of AdoptOpenJDK and is supported using the defined type java::adoptium
. It depends on puppet/archive.
The java::adoptium
defined type expects a major, minor, patch and build version to download the specific release. It doesn't support jre downloads as the other distributions.
java::adoptium { 'jdk16' :
ensure => 'present',
version_major => '16',
version_minor => '0',
version_patch => '2',
version_build => '7',
}
java::adoptium { 'jdk17' :
ensure => 'present',
version_major => '17',
version_minor => '0',
version_patch => '1',
version_build => '12',
}
To install Adoptium to a non-default basedir (defaults: /usr/lib/jvm for Debian; /usr/java for RedHat):
java::adoptium { 'jdk7' :
ensure => 'present',
version_major => '17',
version_minor => '0',
version_patch => '1',
version_build => '12',
basedir => '/custom/java',
}
To ensure that a custom basedir is a directory before Adoptium is installed (note: manage separately for custom ownership or perms):
java::adoptium { 'jdk8' :
ensure => 'present',
version_major => '17',
version_minor => '0',
version_patch => '1',
version_build => '12',
manage_basedir => true,
basedir => '/custom/java',
}
SAP Java (sapjvm / sapmachine)
SAP also offers JVM distributions. They are mostly required for their SAP products. In earlier versions it is called "sapjvm", in newer versions they call it "sapmachine".
The defined type java::sap
installs one or more versions of sapjvm (if version 7 or 8) or sapmachine (if version > 8) Java. java::sap
depends on puppet/archive.
By using this defined type with versions 7 or 8 you agree with the EULA presented at https://tools.hana.ondemand.com/developer-license-3_1.txt!
java::sap { 'sapjvm8' :
ensure => 'present',
version => '8',
java => 'jdk',
}
java::sap { 'sapmachine11' :
ensure => 'present',
version => '11',
java => 'jdk',
}
To install a specific release of a SAP Java version, e.g. sapjvm 8.1.063, provide parameter version_full
:
java::sap { 'jdk8' :
ensure => 'present',
version_full => '8.1.063',
java => 'jdk',
}
To install SAP Java to a non-default basedir (defaults: /usr/lib/jvm for Debian; /usr/java for RedHat):
java::adopt { 'sapjvm8' :
ensure => 'present',
version_full => '8.1.063',
java => 'jdk',
basedir => '/custom/java',
}
To ensure that a custom basedir is a directory before SAP Java is installed (note: manage separately for custom ownership or perms):
java::adopt { 'sapjvm8' :
ensure => 'present',
version_full => '8.1.063',
java => 'jdk',
manage_basedir => true,
basedir => '/custom/java',
}
Reference
For information on the classes and types, see the REFERENCE.md. For information on the facts, see below.
Facts
The java module includes a few facts to describe the version of Java installed on the system:
java_major_version
: The major version of Java.java_patch_level
: The patch level of Java.java_version
: The full Java version string.java_default_home
: The absolute path to the java system home directory (only available on Linux). For instance, thejava
executable's path would be${::java_default_home}/jre/bin/java
. This is slightly different from the "standard" JAVA_HOME environment variable.java_libjvm_path
: The absolute path to the directory containing the shared librarylibjvm.so
(only available on Linux). Useful for settingLD_LIBRARY_PATH
or configuring the dynamic linker.
Note: The facts return nil
if Java is not installed on the system.
Limitations
For an extensive list of supported operating systems, see metadata.json
This module cannot guarantee installation of Java versions that are not available on platform repositories.
This module only manages a singular installation of Java, meaning it is not possible to manage e.g. OpenJDK 7, Oracle Java 7 and Oracle Java 8 in parallel on the same system.
Oracle Java packages are not included in Debian 7 and Ubuntu 12.04/14.04 repositories. To install Java on those systems, you'll need to package Oracle JDK/JRE, and then the module can install the package. For more information on how to package Oracle JDK/JRE, see the Debian wiki.
This module is officially supported for the following Java versions and platforms:
OpenJDK is supported on:
- Red Hat Enterprise Linux (RHEL) 7, 8, 9
- CentOS 7, 8
- Oracle Linux 7
- Debian 10, 11
- Ubuntu 18.04, 20.04, 22.04
- Solaris 11
- SLES 12, 15
Oracle Java is supported on:
- CentOS 7
- CentOS 8
- Red Hat Enterprise Linux (RHEL) 7
AdoptOpenJDK Java is supported on:
- CentOS
- Red Hat Enterprise Linux (RHEL)
- Amazon Linux
- Debian
Adoptium Temurin Java is supported on:
- CentOS
- Red Hat Enterprise Linux (RHEL)
- Amazon Linux
- Debian
SAP Java 7 and 8 (=sapjvm) are supported (by SAP) on:
- SLES 12, 15
- Oracle Linux 7, 8
- Red Hat Enterprise Linux (RHEL) 7, 8
(however installations on other distributions mostly also work well)
For SAP Java > 8 (=sapmachine) please refer to the OpenJDK list as it is based on OpenJDK and has no special requirements.
Known issues
Where Oracle change the format of the URLs to different installer packages, the curl to fetch the package may fail with a HTTP/404 error. In this case, passing a full known good URL using the url
parameter will allow the module to still be able to install specific versions of the JRE/JDK. Note the version_major
and version_minor
parameters must be passed and must match the version downloaded using the known URL in the url
parameter.
OpenBSD
OpenBSD packages install Java JRE/JDK in a unique directory structure, not linking
the binaries to a standard directory. Because of that, the path to this location
is hardcoded in the java_version
fact. Whenever you upgrade Java to a newer
version, you have to update the path in this fact.
License
This codebase is licensed under the Apache2.0 licensing, however due to the nature of the codebase the open source dependencies may also use a combination of AGPL, BSD-2, BSD-3, GPL2.0, LGPL, MIT and MPL Licensing.
Development
Puppet modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. To contribute to Puppet projects, see our module contribution guide.
Contributors
The list of contributors can be found at https://github.com/puppetlabs/puppetlabs-java/graphs/contributors.
Reference
Table of Contents
Classes
Public Classes
java
: This module manages the Java runtime package
Private Classes
java::config
java::params
: This class builds a hash of JDK/JRE packages and (for Debian) alternatives. For wheezy/precise, we provide Oracle JDK/JRE options, even though those are not in the package repositories.
Defined types
java::adopt
: Install one or more versions of AdoptOpenJDK Java.java::adoptium
: Install one or more versions of Adoptium Temurin OpenJDK (former AdoptOpenJDK).java::download
: Installs Java from a url location.java::sap
: Install one or more versions of SAPJVM or Sapmachine
Classes
java
This module manages the Java runtime package
Parameters
The following parameters are available in the java
class:
distribution
Data type: String
The java distribution to install. Can be one of "jdk" or "jre", or other platform-specific options where there are multiple implementations available (eg: OpenJDK vs Oracle JDK).
Default value: 'jdk'
version
Data type: Pattern[/present|installed|latest|^[.+_0-9a-zA-Z:~-]+$/]
The version of java to install. By default, this module simply ensures that java is present, and does not require a specific version.
Default value: 'present'
package
Data type: Optional[String]
The name of the java package. This is configurable in case a non-standard java package is desired.
Default value: undef
package_options
Data type: Optional[Array]
Array of strings to pass installation options to the 'package' Puppet resource. Options available depend on the 'package' provider for the target OS.
Default value: undef
java_alternative
Data type: Optional[String]
The name of the java alternative to use on Debian systems. "update-java-alternatives -l" will show which choices are available. If you specify a particular package, you will almost always also want to specify which java_alternative to choose. If you set this, you also need to set the path below.
Default value: undef
java_alternative_path
Data type: Optional[String]
The path to the "java" command on Debian systems. Since the alternatives system makes it difficult to verify which alternative is actually enabled, this is required to ensure the correct JVM is enabled.
Default value: undef
java_home
Data type: Optional[String]
The path to where the JRE is installed. This will be set as an environment variable.
Default value: undef
Defined types
java::adopt
Defined Type java::adopt
Parameters
The following parameters are available in the java::adopt
defined type:
ensure
version
version_major
version_minor
java
proxy_server
proxy_type
url
basedir
manage_basedir
package_type
manage_symlink
symlink_name
ensure
Data type: Enum['present']
Install or remove the package.
Default value: 'present'
version
Data type: String[1]
Version of Java to install, e.g. '8' or '9'. Default values for major and minor versions will be used.
Default value: '8'
version_major
Data type: Optional[String]
Major version which should be installed, e.g. '8u101' or '9.0.4'. Must be used together with version_minor.
Default value: undef
version_minor
Data type: Optional[String]
Minor version which should be installed, e.g. 'b12' (for version = '8') or '11' (for version != '8'). Must be used together with version_major.
Default value: undef
java
Data type: String[1]
Type of Java Standard Edition to install, jdk or jre.
Default value: 'jdk'
proxy_server
Data type: Optional[String]
Specify a proxy server, with port number if needed. ie: https://example.com:8080. (passed to archive)
Default value: undef
proxy_type
Data type: Optional[String]
Proxy server type (none|http|https|ftp). (passed to archive)
Default value: undef
url
Data type: Optional[String]
Full URL
Default value: undef
basedir
Data type: Optional[String]
Directory under which the installation will occur. If not set, defaults to /usr/lib/jvm for Debian and /usr/java for RedHat.
Default value: undef
manage_basedir
Data type: Boolean
Whether to manage the basedir directory. Note: /usr/lib/jvm is managed for Debian by default, separate from this parameter.
Default value: true
package_type
Data type: Optional[String]
Type of installation package for specified version of java_se. java_se 6 comes in a few installation package flavors and we need to account for them. Optional forced package types: rpm, rpmbin, tar.gz
Default value: undef
manage_symlink
Data type: Boolean
Whether to manage a symlink that points to the installation directory. Defaults to false.
Default value: false
symlink_name
Data type: Optional[String]
The name for the optional symlink in the installation directory.
Default value: undef
java::adoptium
Defined Type java::adoptium
Parameters
The following parameters are available in the java::adoptium
defined type:
ensure
version_major
version_minor
version_patch
version_build
proxy_server
proxy_type
url
basedir
manage_basedir
manage_symlink
symlink_name
ensure
Data type: Enum['present']
Install or remove the package.
Default value: 'present'
version_major
Data type: Optional[String]
Major version which should be installed, e.g. '16' or '17'
Default value: undef
version_minor
Data type: Optional[String]
Minor version which should be installed, e.g. '0'
Default value: undef
version_patch
Data type: Optional[String]
Minor version which should be installed, e.g. '2'
Default value: undef
version_build
Data type: Optional[String]
Build version which should be installed, e.g. '07'
Default value: undef
proxy_server
Data type: Optional[String]
Specify a proxy server, with port number if needed. ie: https://example.com:8080. (passed to archive)
Default value: undef
proxy_type
Data type: Optional[Enum['none', 'http', 'https', 'ftp']]
Proxy server type (none|http|https|ftp). (passed to archive)
Default value: undef
url
Data type: Optional[String]
Full URL
Default value: undef
basedir
Data type: Optional[String]
Directory under which the installation will occur. If not set, defaults to /usr/lib/jvm for Debian and /usr/java for RedHat.
Default value: undef
manage_basedir
Data type: Boolean
Whether to manage the basedir directory. Defaults to false. Note: /usr/lib/jvm is managed for Debian by default, separate from this parameter.
Default value: true
manage_symlink
Data type: Boolean
Whether to manage a symlink that points to the installation directory. Defaults to false.
Default value: false
symlink_name
Data type: Optional[String]
The name for the optional symlink in the installation directory.
Default value: undef
java::download
Defined Type java::download
Parameters
The following parameters are available in the java::download
defined type:
ensure
version
version_major
version_minor
java_se
proxy_server
proxy_type
url
jce
jce_url
basedir
manage_basedir
package_type
manage_symlink
symlink_name
ensure
Data type: Enum['present']
Install or remove the package.
Default value: 'present'
version
Data type: String[1]
Version of Java to install, e.g. '7' or '8'. Default values for major and minor versions will be used.
Default value: '8'
version_major
Data type: Optional[String]
Major version which should be installed, e.g. '8u101'. Must be used together with version_minor.
Default value: undef
version_minor
Data type: Optional[String]
Minor version which should be installed, e.g. 'b12'. Must be used together with version_major.
Default value: undef
java_se
Data type: String[1]
Type of Java Standard Edition to install, jdk or jre.
Default value: 'jdk'
proxy_server
Data type: Optional[String]
Specify a proxy server, with port number if needed. ie: https://example.com:8080. (passed to archive)
Default value: undef
proxy_type
Data type: Optional[Enum['none', 'http', 'https', 'ftp']]
Proxy server type (none|http|https|ftp). (passed to archive)
Default value: undef
url
Data type: Optional[String]
Full URL
Default value: undef
jce
Data type: Boolean
Install Oracles Java Cryptographic Extensions into the JRE or JDK
Default value: false
jce_url
Data type: Optional[String]
Full URL to the jce zip file
Default value: undef
basedir
Data type: Optional[String]
Directory under which the installation will occur. If not set, defaults to /usr/lib/jvm for Debian and /usr/java for RedHat.
Default value: undef
manage_basedir
Data type: Boolean
Whether to manage the basedir directory. Defaults to false. Note: /usr/lib/jvm is managed for Debian by default, separate from this parameter.
Default value: false
package_type
Data type: Optional[String]
Type of installation package for specified version of java_se. java_se 6 comes in a few installation package flavors and we need to account for them. Optional forced package types: rpm, rpmbin, tar.gz
Default value: undef
manage_symlink
Data type: Boolean
Whether to manage a symlink that points to the installation directory. Defaults to false.
Default value: false
symlink_name
Data type: Optional[String]
The name for the optional symlink in the installation directory.
Default value: undef
java::sap
Defined Type java::sap
Parameters
The following parameters are available in the java::sap
defined type:
ensure
version
version_full
java
proxy_server
proxy_type
basedir
manage_basedir
manage_symlink
symlink_name
ensure
Data type: Enum['present']
Install or remove the package.
Default value: 'present'
version
Data type: String[1]
Version of Java to install, e.g. '8' or '9'. Default values for full versions will be used.
Default value: '8'
version_full
Data type: Optional[String]
Major version which should be installed, e.g. '8.1.063' or '11.0.7'. If used, "version" parameter is ignored.
Default value: undef
java
Data type: String[1]
Type of Java Edition to install, jdk or jre.
Default value: 'jdk'
proxy_server
Data type: Optional[String]
Specify a proxy server, with port number if needed. ie: https://example.com:8080. (passed to archive)
Default value: undef
proxy_type
Data type: Optional[Enum['none', 'http', 'https', 'ftp']]
Proxy server type (none|http|https|ftp). (passed to archive)
Default value: undef
basedir
Data type: Optional[String]
Directory under which the installation will occur. If not set, defaults to /usr/lib/jvm for Debian and /usr/java for RedHat.
Default value: undef
manage_basedir
Data type: Boolean
Whether to manage the basedir directory. Note: /usr/lib/jvm is managed for Debian by default, separate from this parameter.
Default value: true
manage_symlink
Data type: Boolean
Whether to manage a symlink that points to the installation directory. Defaults to false.
Default value: false
symlink_name
Data type: Optional[String]
The name for the optional symlink in the installation directory.
Default value: undef
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
v11.0.1 - 2024-10-07
Fixed
v11.0.0 - 2024-04-16
Changed
- [CAT-1427] : Removing RedHat/Scientific/OracleLinux 6 #576 (rajat-puppet)
Added
v10.1.2 - 2023-07-27
Fixed
v10.1.1 - 2023-07-03
v10.1.0 - 2023-06-20
Added
- puppet/archive: Allow 7.x #559 (bastelfreak)
- pdksync - (MAINT) - Allow Stdlib 9.x #557 (LukasAud)
v10.0.0 - 2023-04-17
Changed
- (CONT-784) Add Support for Puppet 8 / Drop Support for Puppet 6 #548 (david22swan)
Added
Fixed
- Fix shell_escape of unless command #550 (traylenator)
v9.0.1 - 2022-11-29
Fixed
- 538-unresolved-fact-fix #540 (jordanbreen28)
- Unresolved fact fix #539 (jordanbreen28)
v9.0.0 - 2022-11-23
Changed
Fixed
- Update package naming to differentiate between minor versions #534 (sd-z)
- (CONT-173) - Updating deprecated facter instances #531 (jordanbreen28)
- pdksync - (CONT-189) Remove support for RedHat6 / OracleLinux6 / Scientific6 #530 (david22swan)
- pdksync - (CONT-130) - Dropping Support for Debian 9 #527 (jordanbreen28)
- Hardening manifests #525 (LukasAud)
v8.2.0 - 2022-08-09
Added
- pdksync - (GH-cat-11) Certify Support for Ubuntu 22.04 #522 (david22swan)
- Make ubuntu 22.04 also default to openjdk-11 #519 (rswarts)
- pdksync - (GH-cat-12) Add Support for Redhat 9 #518 (david22swan)
v8.1.0 - 2022-05-30
Added
v8.0.0 - 2022-04-05
Changed
- (GH-C&T-7) Remove code specific to unsupported OSs #507 (david22swan)
Added
Fixed
- pdksync - (GH-iac-334) Remove Support for Ubuntu 14.04/16.04 #505 (david22swan)
- pdksync - (IAC-1787) Remove Support for CentOS 6 #503 (david22swan)
v7.3.0 - 2021-10-11
Added
- pdksync - (IAC-1753) - Add Support for AlmaLinux 8 #500 (david22swan)
- pdksync - (IAC-1751) - Add Support for Rocky 8 #499 (david22swan)
Fixed
- pdksync - (IAC-1598) - Remove Support for Debian 8 #498 (david22swan)
v7.2.0 - 2021-09-20
Added
Fixed
v7.1.1 - 2021-08-26
Fixed
- (IAC-1741) Allow stdlib v8.0.0 #491 (david22swan)
v7.1.0 - 2021-08-12
Added
- pdksync - (IAC-1709) - Add Support for Debian 11 #489 (david22swan)
v7.0.2 - 2021-04-26
Fixed
v7.0.1 - 2021-04-19
Fixed
- allow v5.x of puppet/archive #476 (bastelfreak)
v7.0.0 - 2021-03-01
Changed
- pdksync - Remove Puppet 5 from testing and bump minimal version to 6.0.0 #463 (carabasdaniel)
Fixed
v6.5.0 - 2020-12-16
Added
- pdksync - (feat) Add support for Puppet 7 #454 (daianamezdrea)
v6.4.0 - 2020-11-09
Added
Fixed
- [IAC-1208] - Add the good links for solving the 404 error and exclude sles #443 (daianamezdrea)
- (IAC-993) - Removal of inappropriate terminology #439 (david22swan)
v6.3.0 - 2020-05-28
Added
- (MODULES-10681) Add option to manage symlink to java::adopt #429 (fraenki)
- (IAC-746) - Add ubuntu 20.04 support #428 (david22swan)
v6.2.0 - 2020-02-19
Added
Fixed
v6.1.0 - 2020-02-03
v6.0.0 - 2019-11-11
Added
- (FM-8676) Add CentOS 8 to supported OS list #399 (david22swan)
- FM-8403 - add support Debain10 #387 (lionce)
Fixed
- we need to check if java_default_home has a value before we attempt t… #391 (robmbrooks)
- Add support for java 11, the default in debian buster 10 #386 (jhooyberghs)
v5.0.1 - 2019-08-05
v5.0.0 - 2019-08-05
Changed
- [FM-8320] Remove Oracle download #372 (carabasdaniel)
Added
- (FM-8223) converted to use litmus #376 (tphoney)
- Add buster support, default to 11 #369 (mhjacks)
- Add support for debian buster #364 (TomRitserveldt)
Fixed
- (FM-8343) use release numbers not lsbdistcodename #375 (tphoney)
- Revert "Add support for debian buster" #374 (tphoney)
v4.1.0 - 2019-05-29
Added
v4.0.0 - 2019-05-20
Changed
- pdksync - (MODULES-8444) - Raise lower Puppet bound #356 (david22swan)
Added
- (FM-7921) - Implement Puppet Strings #353 (david22swan)
- Update default version & java 8 version from 8u192 to 8u201 #347 (valentinsavenko)
- Add ability to override basedir and package type for oracle java #345 (fraenki)
- MODULES-8613: Add option to set a custom JCE download URL #344 (HielkeJ)
Fixed
3.3.0 - 2019-01-18
Added
- (MODULES-8234) - Add SLES 15 support #336 (eimlav)
- (MODULES-8234) - Upgrade Oracle Java version to 8u192 #334 (eimlav)
- Support for installing JCE. Fixes MODULES-1681 #326 (dploeger)
- MODULES-8044: upgrade Oracle Java 8 to 181, make it the default release #314 (ojongerius)
Fixed
- pdksync - (FM-7655) Fix rubygems-update for ruby < 2.3 #338 (tphoney)
- (FM-7520) - Removing Solaris from the support matrix #335 (pmcmaw)
- Optimized code for making java::oracle atomic. Fixes MODULES-8085 #330 (dploeger)
- Fix OpenJDK paths on Debian based OS with ARM #329 (mmoll)
- (MODULES-7050) - Fix OracleJDK reinstalling on Puppet runs #323 (eimlav)
- (MODULES-8025) Switch default for Ubuntu 18.04 to 11 #322 (baurmatt)
- MODULES-7819 fix set JAVA_HOME environments on FreeBSD platform #315 (olevole)
3.2.0 - 2018-09-27
Added
3.1.0 - 2018-09-10
Added
3.0.0 - 2018-08-14
Changed
- [FM-6963] Removal of unsupported OS from java #295 (david22swan)
Added
- (MODULES-7561) - Addition of support for Ubuntu 18.04 to java #299 (david22swan)
Fixed
- Remove ensure_resource to avoid potential conflict #287 (sevencastles)
2.4.0 - 2018-01-23
Fixed
- Fixes java_home for SLES 11.4 and relevant tests #283 (HelenCampbell)
- FM-6634 rubocop fixes #279 (tphoney)
2.3.0 - 2017-12-01
Added
2.2.0 - 2017-11-20
Added
Fixed
2.1.1 - 2017-11-09
Added
Fixed
- (FACT-1754) search for matching line with java version #257 (shuebnersr)
2.1.0 - 2017-06-22
Added
Fixed
- replace validate_* calls with datatypes & minor fixes #223 (bastelfreak)
- Bugfix/modules 4368 java default home invalid fact #215 (vStone)
2.0.0 - 2017-05-30
Added
- add 'Amazon Linux AMI' supports #209 (hedzr)
- Add proxy options for Oracle Java #188 (edestecd)
- Add support for Oracle Linux #185 (LightAxe)
- (MODULES-2971) Add java_home to all operating systems #184 (ntpttr)
Fixed
- (MODULES-4751) Fix Archive Order of Operations #225 (bstopp)
- Fix naming of version_major and version_minor parameters #196 (gzurowski)
1.6.0 - 2016-06-13
Fixed
- Fix typo in documentation for class oracle #170 (gerhardsam)
- Fix up rspec deprecation warnings. #166 (alex-harvey-z3q)
1.5.0 - 2016-04-12
Added
- Add Ubuntu 16.04 #164 (s12v)
- Add an example for installing java 8 #162 (npwalker)
- Add support for official Oracle Java SE jdk and jre packages for CentOS #159 (mmarseglia)
- (MODULES-2928) Adds FreeBSD Support #153 (petems)
- Added support for oracle-j2re1.8 and oracle-j2sdk1.8 #152 (thomasodus)
Fixed
- Fix typo in README.markdown #165 (alex-harvey-z3q)
1.4.3 - 2015-12-07
Added
- Add support for Ubuntu 15.10 #147 (oc243)
- add two facts: libjvm and java executable paths #117 (faxm0dem)
1.4.2 - 2015-10-07
Fixed
1.4.1 - 2015-07-15
Added
1.4.0 - 2015-07-08
Added
- (MODULES-2068) add fedora to metadata.json operatingsystem_support list #129 (bmjen)
- Add helper to install puppet/pe/puppet-agent #123 (hunner)
- (BKR-147) add Gemfile setting for BEAKER_VERSION for puppet... #115 (anodelman)
Fixed
- Fix incorrect metadata #133 (hunner)
- (MODULES-2095) fixes create-java-alternatives command #128 (bmjen)
- Fix Fedora 21+ package name #104 (cottsay)
1.3.0 - 2015-01-20
Added
- FM-1523: Added module summary to metadata.json #90 (jbondpdx)
- Add Java alternatives for RHEL based distros. #89 (rdrgmnzs)
- add utopic support #88 (pherjung)
- Revert "Add alternative support for RedHat" #87 (underscorgan)
- cosmetic change to add missing space to bullet point in markdown so it r... #80 (stevenalexander)
- Add alternative support for RedHat #61 (rdrgmnzs)
Fixed
- Acceptance test fix for wheezy #96 (underscorgan)
- Test fix for RHEL with alternatives #94 (underscorgan)
1.2.0 - 2014-11-10
Fixed
1.1.2 - 2014-09-03
Added
1.1.1 - 2014-05-02
Added
1.1.0 - 2014-01-06
Added
Fixed
1.0.1 - 2013-08-01
Added
- Add a .travis.yml file. #32 (apenney)
- Added support for Amazon linux #29 (actionjack)
- Add support for OpenSUSE #27 (rombert)
- add support for Ubuntu quantal and raring #26 (nrvale0)
Fixed
0.3.0 - 2013-05-08
Added
- Add special case for fedora operating systems, where java is installable... #23 (haus)
- Adding java::package_suse class #22 (sschneid)
0.2.0 - 2012-11-15
Added
v0.1.5 - 2011-06-16
0.1.4 - 2011-06-02
0.1.3 - 2011-05-28
0.1.2 - 2011-05-26
0.1.1 - 2011-05-25
Added
- Add basic validation to class parameters #1 (jeffmccune)
0.0.1 - 2011-05-24
Dependencies
- puppetlabs/stdlib (>= 4.13.1 < 10.0.0)
- puppet/archive (>= 1.1.0 < 8.0.0)
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Quality checks
We run a couple of automated scans to help you assess a module’s quality. Each module is given a score based on how well the author has formatted their code and documentation and select modules are also checked for malware using VirusTotal.
Please note, the information below is for guidance only and neither of these methods should be considered an endorsement by Puppet.
Malware scan results
The malware detection service on Puppet Forge is an automated process that identifies known malware in module releases before they’re published. It is not intended to replace your own virus scanning solution.
Learn more about malware scans- Module name:
- puppetlabs-java
- Module version:
- 11.0.1
- Scan initiated:
- October 7th 2024, 3:55:08
- Detections:
- 0 / 57
- Scan stats:
- 57 undetected
- 0 harmless
- 0 failures
- 0 timeouts
- 0 malicious
- 0 suspicious
- 14 unsupported
- Scan report:
- View the detailed scan report