Version information
This version is compatible with:
- Puppet Enterprise 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, 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x
- Puppet >= 6.0.0 < 8.0.0
- , , , , , , , ,
Start using this module
Add this module to your Puppetfile:
mod 'puppetlabs-java', '7.3.0'
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.
- 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',
}
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) 5, 6, 7
- CentOS 5, 6, 7
- Oracle Linux 6, 7
- Scientific Linux 6
- Debian 8, 9
- Ubuntu 14.04, 16.04, 18.04, 20.04
- Solaris 11
- SLES 11, 12
Sun Java is supported on:
- Debian 6
Oracle Java is supported on:
- CentOS 6
- CentOS 7
- Red Hat Enterprise Linux (RHEL) 7
AdoptOpenJDK 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.
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::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: Any
Install or remove the package.
Default value: 'present'
version
Data type: Any
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: Any
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: Any
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: Any
Type of Java Standard Edition to install, jdk or jre.
Default value: 'jdk'
proxy_server
Data type: Any
Specify a proxy server, with port number if needed. ie: https://example.com:8080. (passed to archive)
Default value: undef
proxy_type
Data type: Any
Proxy server type (none|http|https|ftp). (passed to archive)
Default value: undef
url
Data type: Any
Full URL
Default value: undef
basedir
Data type: Any
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: Any
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
package_type
Data type: Any
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: Any
Whether to manage a symlink that points to the installation directory. Defaults to false.
Default value: false
symlink_name
Data type: Any
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: Any
Install or remove the package.
Default value: 'present'
version
Data type: Any
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: Any
Major version which should be installed, e.g. '8u101'. Must be used together with version_minor.
Default value: undef
version_minor
Data type: Any
Minor version which should be installed, e.g. 'b12'. Must be used together with version_major.
Default value: undef
java_se
Data type: Any
Type of Java Standard Edition to install, jdk or jre.
Default value: 'jdk'
proxy_server
Data type: Any
Specify a proxy server, with port number if needed. ie: https://example.com:8080. (passed to archive)
Default value: undef
proxy_type
Data type: Any
Proxy server type (none|http|https|ftp). (passed to archive)
Default value: undef
url
Data type: Any
Full URL
Default value: undef
jce
Data type: Any
Install Oracles Java Cryptographic Extensions into the JRE or JDK
Default value: false
jce_url
Data type: Any
Full URL to the jce zip file
Default value: undef
basedir
Data type: Any
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: Any
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: Any
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: Any
Whether to manage a symlink that points to the installation directory. Defaults to false.
Default value: false
symlink_name
Data type: Any
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: Any
Install or remove the package.
Default value: 'present'
version
Data type: Any
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: Any
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: Any
Type of Java Edition to install, jdk or jre.
Default value: 'jdk'
proxy_server
Data type: Any
Specify a proxy server, with port number if needed. ie: https://example.com:8080. (passed to archive)
Default value: undef
proxy_type
Data type: Any
Proxy server type (none|http|https|ftp). (passed to archive)
Default value: undef
basedir
Data type: Any
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: Any
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: Any
Whether to manage a symlink that points to the installation directory. Defaults to false.
Default value: false
symlink_name
Data type: Any
The name for the optional symlink in the installation directory.
Default value: undef
Change log
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.
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-27)
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-18)
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-07-29)
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-17)
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-06)
Added
3.0.0 (2018-08-13)
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
Summary
This release uses the PDK convert functionality which in return makes the module PDK compliant. Also includes a clean up from Rubocop.
Changed
- 1.3.2 PDK convert has been applied MODULES-6456
- The modules has undergone a Rubocop cleanup.
Fixed
- $java_home for SLES 11.4 has been updated to the correct location.
Supported Release 2.3.0
Summary
This release is in order to implement Rubocop changes into the module.
Added
- Several Modulesync changes have been made.
- Rubocop has been implemented in the module.
- CentOS 7 is now supported.
- Red Hat Enterprise Linux (RHEL) 7 is now supported.
- Ubuntu artful 1710 now supported.
- Bionic 1804 now supported.
Supported Release 2.2.0
Summary
This release is a maintenance release that includes a roll up of minor changes.
Added
- Addition of Ubuntu for Oracle Java.
- Addition of Debian 9 in supported versions.
- Addition of OpenBSD case and use
realpath
rather thanreadlink
in Java Default Home Facter fact.
Removed
- Removal of OpenBSD as a special case and deprecated
with_env
in Java Version Facter Facter fact.
Supported Release 2.1.1
Summary
This release is a maintenance release that includes a roll up of minor changes.
Added
- Basic Arch Linux, Cloud Linux and Ubuntu 17.04 compatibility.
- Metadata bump for Puppet 5.
- Search for matching line with java version.
- (MODULES-4069) Fail when required params are not available in params.
- A test for java version when java not installed.
- Allow latest archive version as dependency.
Changed
- CONTRIBUTING.md document includes updates.
- Removal of Ubuntu 10.04 ad 12.04, Debian 6 in supported versions.
Supported Release 2.1.0
Summary
This release adds fixes to restore the ability to install Oracle Java. It also fixes the paths for the latest RHEL 7 1.7.0 and 1.8.0 OpenJDKs.
Added
- java::oracle parameter
url
- java::oracle parameter
url_hash
Fixed
- Let
java_default_home
fact work when /usr/bin/java does not exist - Add puppet 4 parameter types
- Use
/usr/lib/jvm/java-1.x.0
symlinks forjava_home
defaults.
Supported Release 2.0.0
Summary
This is a major release including some bug fixes, new parameters, and general module updates.
This release drops Puppet 3 support
Added
- Debian Stretch, Yakkety Yak, Amazon Linux, Oracle Linux, Scientific Linux CERN compatibility
version_major
andversion_minor
parameters for specifying Java SE version to install$JAVA_HOME
now set by the module on compatible systems. Thejava_home
parameter is also provided for manual setting. MODULES-2971proxy_server
andproxy_type
for choosing a proxy server to get Java from
Changed
- Moved lower Puppet version requirement to 4.7.0
Fixed
- Module no longer downloads the Java archive on Puppet runs if Java is already installed.
- java_default_home fact is not always correct on oracle packages MODULES-4050
- Order of operations for archives MODULES-4751
- Increase Xmx setting for
java_version
fact MODULES-4736
Supported Release 1.6.0
Summary
Addition of a new supported OS, along with several other features and bugfixes.
Features
- Ubuntu 16.04 support.
- Addition example for installing Java 8.
- Update to newest modulesync_configs.
- Addition of RedHat for Oracle Java.
Bugfixes
- Custom archive type now given extract_path.
- Fix for rspec deprectation warnings.
- Typo fixes for readme.
- Fixed tests to run under strict variables.
- Updated Java package for SLES 11.4.
Supported Release 1.5.0
Summary
A release which has several support additions for different OSes. Also a couple of additional features and a few bug fixes.
Features
- Added Ubuntu 15.10 compatibility.
- Addition of two facts: java_libjvm_path and java_default_home.
- Added support for oracle-j2re1.8 and oracle-j2sdk1.8.
- Adds FreeBSD Support.
- Exposed the Puppet package resources install_options parameter via a new class parameter named package_options.
- Debian 8 support.
- Add support for official Oracle Java SE jdk and jre packages for CentOS.
- Use java 8 as the default on RHEL > 7.0.
Bugfixes
- Updated fixtures.yml to use git instead of http for stdlib.
- Updates to current msync configs.
- Small README updates and syntax error fixes.
Supported Release 1.4.3
Summary
Small release for support of newer PE versions. This increments the version of PE in the metadata.json file.
2015-10-07 - Supported Release 1.4.2
Summary
This release fixes the fact to not trigger java every time on OS X when it is not available.
Bugfixes
- Causes java_version fact to not run
java
when java is not installed on OS X
2015-07-16 - Supported Release 1.4.1
Summary
This release updates the metadata for the upcoming release of PE and update params for OEL to match metadata
Bugfixes:
- Add missing OEL to params
2015-07-07 - Supported Release 1.4.0
Summary
This release adds several new features, bugfixes, documentation updates, and test improvements.
Features:
- Puppet 4 support and testing
- Adds support for several Operating Systems
- Ubuntu 15.04
- OpenBSD 5.6, 5.7
- Fedora 20, 21, 22
Bugfixes:
- Fixes java_version fact to work on large systems. (MODULES-1749)
- Improves maintainability of java_version fact.
- Fixes java package names on Fedora 21+.
- Fixes java install problems on Puppet 3.7.5 - 3.8.1 (PUP-4520)
- Fixes create-java-alternatives commands on RedHat distros.
- Fixes bug with Debian systems missing java-common package.
2015-01-20 - Supported Release 1.3.0
Summary
This release adds 3 new facts for determining Java version, adds RHEL alternatives support, adds utopic support, and fixes the flag for update-java-alternatives
when installed from a headless pacakge.
Features
- Added RHEL support for alternatives
- New facts
- java_major_version
- java_patch_level
- java_version
- Add support for utopic
Bugfixes
- Use
--jre-headless
in theupdate-java-alternatives
command when installed from aheadless
package
2014-11-11 - Supported Version 1.2.0
Summary:
This release adds SLES 12 support and is tested for Future Parser Support
Bugfixes:
- Several readme updates
- Testcase flexability increased
Features:
- Add SLES 12 support
- Future Parser tested
- Validated against PE 3.7
2014-08-25 - Supported Version 1.1.2
Summary:
This release begins the support coverage of the puppetlabs-java module.
Bugfixes:
- Update java alternative values from deprecated names
- Readme updated
- Testing updated
2014-05-02 - Version 1.1.1
Summary:
Add support for new versions of Debian and Ubuntu!
Features:
- Add support for Ubuntu Trusty (14.04)
- Add support for Debian Jessie (8.x)
2014-01-06 - Version 1.1.0
Summary:
Primarily a release for Ubuntu users!
Features:
- Add support for Ubuntu Saucy (13.10)
- Add
java_home
parameter for centralized setting of JAVA_HOME. - Add Scientific Linux
Bugfixes:
- Plus signs are valid in debian/ubuntu package names.
2013-08-01 - Version 1.0.1
Matthaus Owens matthaus@puppetlabs.com
- Update java packages for Fedora systems
2013-07-29 - Version 1.0.0
Detailed Changes
Krzysztof Suszyński krzysztof.suszynski@coi.gov.pl
- Adding support for Oracle Enterprise Linux
Peter Drake pdrake@allplayers.com
- Add support for natty
Robert Munteanu rmuntean@adobe.com
- Add support for OpenSUSE
Martin Jackson martin@uncommonsense-uk.com
- Added support Amazon Linux using facter >= 1.7.x
Gareth Rushgrove gareth@morethanseven.net Brett Porter brett@apache.org
- Fixes for older versions of CentOS
- Improvements to module build and tests
Nathan R Valentine nrvale0@gmail.com
- Add support for Ubuntu quantal and raring
Sharif Nassar sharif@mediatemple.net
- Add support for Debian alternatives, and more than one JDK/JRE per platform.
2013-04-04 - Version 0.3.0
Reid Vandewiele reid@puppetlabs.com -
- Refactor, introduce params pattern
2012-11-15 - Version 0.2.0
Scott Schneider sschneider@puppetlabs.com
- Add Solaris support
2011-06-16 - Version 0.1.5
Jeff McCune jeff@puppetlabs.com
- Add Debian based distro (Lucid) support
2011-06-02 - Version 0.1.4
Jeff McCune jeff@puppetlabs.com
- Fix class composition ordering problems
2011-05-28 - Version 0.1.3
Jeff McCune jeff@puppetlabs.com
- Remove stages
2011-05-26 - Version 0.1.2
Jeff McCune jeff@puppetlabs.com
- Changes JRE/JDK selection class parameter to $distribution
2011-05-25 - Version 0.1.1
Jeff McCune jeff@puppetlabs.com
- Re-did versioning to follow semantic versioning
- Add validation of class parameters
2011-05-24 - Version 0.1.0
Jeff McCune jeff@puppetlabs.com
- Default to JDK version 6u25
2011-05-24 - Version 0.0.1
Jeff McCune jeff@puppetlabs.com
- Initial release
* This Changelog was automatically generated by github_changelog_generator
Dependencies
- puppetlabs/stdlib (>= 4.13.1 < 9.0.0)
- puppet/archive (>= 1.1.0 < 7.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:
- 7.3.0
- Scan initiated:
- October 11th 2021, 6:33:45
- Detections:
- 0 / 56
- Scan stats:
- 56 undetected
- 0 harmless
- 0 failures
- 0 timeouts
- 0 malicious
- 0 suspicious
- 16 unsupported
- Scan report:
- View the detailed scan report