diff --git a/CHANGELOG.md b/CHANGELOG.md index a8dc6b0..23fbe38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,466 +1,478 @@ # Change log All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org). +## [v7.0.0](https://github.com/puppetlabs/puppetlabs-java/tree/v7.0.0) (2021-03-01) + +[Full Changelog](https://github.com/puppetlabs/puppetlabs-java/compare/v6.5.0...v7.0.0) + +### Changed + +- pdksync - Remove Puppet 5 from testing and bump minimal version to 6.0.0 [\#463](https://github.com/puppetlabs/puppetlabs-java/pull/463) ([carabasdaniel](https://github.com/carabasdaniel)) + +### Fixed + +- \(MODULES-10935\) - Switch legacy operatingsystem fact to modern kernel one [\#461](https://github.com/puppetlabs/puppetlabs-java/pull/461) ([rjd1](https://github.com/rjd1)) + ## [v6.5.0](https://github.com/puppetlabs/puppetlabs-java/tree/v6.5.0) (2020-12-16) [Full Changelog](https://github.com/puppetlabs/puppetlabs-java/compare/v6.4.0...v6.5.0) ### Added - pdksync - \(feat\) Add support for Puppet 7 [\#454](https://github.com/puppetlabs/puppetlabs-java/pull/454) ([daianamezdrea](https://github.com/daianamezdrea)) ## [v6.4.0](https://github.com/puppetlabs/puppetlabs-java/tree/v6.4.0) (2020-11-09) [Full Changelog](https://github.com/puppetlabs/puppetlabs-java/compare/v6.3.0...v6.4.0) ### Added - Add support for SAP Java \(sapjvm / sapmachine\) [\#433](https://github.com/puppetlabs/puppetlabs-java/pull/433) ([timdeluxe](https://github.com/timdeluxe)) ### Fixed - \[IAC-1208\] - Add the good links for solving the 404 error and exclude sles [\#443](https://github.com/puppetlabs/puppetlabs-java/pull/443) ([daianamezdrea](https://github.com/daianamezdrea)) - \(IAC-993\) - Removal of inappropriate terminology [\#439](https://github.com/puppetlabs/puppetlabs-java/pull/439) ([david22swan](https://github.com/david22swan)) ## [v6.3.0](https://github.com/puppetlabs/puppetlabs-java/tree/v6.3.0) (2020-05-27) [Full Changelog](https://github.com/puppetlabs/puppetlabs-java/compare/v6.2.0...v6.3.0) ### Added - \(MODULES-10681\) Add option to manage symlink to java::adopt [\#429](https://github.com/puppetlabs/puppetlabs-java/pull/429) ([fraenki](https://github.com/fraenki)) - \(IAC-746\) - Add ubuntu 20.04 support [\#428](https://github.com/puppetlabs/puppetlabs-java/pull/428) ([david22swan](https://github.com/david22swan)) ## [v6.2.0](https://github.com/puppetlabs/puppetlabs-java/tree/v6.2.0) (2020-02-18) [Full Changelog](https://github.com/puppetlabs/puppetlabs-java/compare/v6.1.0...v6.2.0) ### Added - Support AdoptOpenJDK [\#370](https://github.com/puppetlabs/puppetlabs-java/pull/370) ([timdeluxe](https://github.com/timdeluxe)) ### Fixed - Replace legacy facts by modern facts [\#406](https://github.com/puppetlabs/puppetlabs-java/pull/406) ([hdeheer](https://github.com/hdeheer)) ## [v6.1.0](https://github.com/puppetlabs/puppetlabs-java/tree/v6.1.0) (2020-02-03) [Full Changelog](https://github.com/puppetlabs/puppetlabs-java/compare/v6.0.0...v6.1.0) ## [v6.0.0](https://github.com/puppetlabs/puppetlabs-java/tree/v6.0.0) (2019-11-11) [Full Changelog](https://github.com/puppetlabs/puppetlabs-java/compare/v5.0.1...v6.0.0) ### Added - \(FM-8676\) Add CentOS 8 to supported OS list [\#399](https://github.com/puppetlabs/puppetlabs-java/pull/399) ([david22swan](https://github.com/david22swan)) - FM-8403 - add support Debain10 [\#387](https://github.com/puppetlabs/puppetlabs-java/pull/387) ([lionce](https://github.com/lionce)) ### Fixed - we need to check if java\_default\_home has a value before we attempt t… [\#391](https://github.com/puppetlabs/puppetlabs-java/pull/391) ([robmbrooks](https://github.com/robmbrooks)) - Add support for java 11, the default in debian buster 10 [\#386](https://github.com/puppetlabs/puppetlabs-java/pull/386) ([jhooyberghs](https://github.com/jhooyberghs)) ## [v5.0.1](https://github.com/puppetlabs/puppetlabs-java/tree/v5.0.1) (2019-08-05) [Full Changelog](https://github.com/puppetlabs/puppetlabs-java/compare/v5.0.0...v5.0.1) ## [v5.0.0](https://github.com/puppetlabs/puppetlabs-java/tree/v5.0.0) (2019-07-29) [Full Changelog](https://github.com/puppetlabs/puppetlabs-java/compare/v4.1.0...v5.0.0) ### Changed - \[FM-8320\] Remove Oracle download [\#372](https://github.com/puppetlabs/puppetlabs-java/pull/372) ([carabasdaniel](https://github.com/carabasdaniel)) ### Added - \(FM-8223\) converted to use litmus [\#376](https://github.com/puppetlabs/puppetlabs-java/pull/376) ([tphoney](https://github.com/tphoney)) - Add buster support, default to 11 [\#369](https://github.com/puppetlabs/puppetlabs-java/pull/369) ([mhjacks](https://github.com/mhjacks)) - Add support for debian buster [\#364](https://github.com/puppetlabs/puppetlabs-java/pull/364) ([TomRitserveldt](https://github.com/TomRitserveldt)) ### Fixed - \(FM-8343\) use release numbers not lsbdistcodename [\#375](https://github.com/puppetlabs/puppetlabs-java/pull/375) ([tphoney](https://github.com/tphoney)) - Revert "Add support for debian buster" [\#374](https://github.com/puppetlabs/puppetlabs-java/pull/374) ([tphoney](https://github.com/tphoney)) ## [v4.1.0](https://github.com/puppetlabs/puppetlabs-java/tree/v4.1.0) (2019-05-29) [Full Changelog](https://github.com/puppetlabs/puppetlabs-java/compare/v4.0.0...v4.1.0) ### Added - \(FM-8028\) Add RedHat 8 support [\#363](https://github.com/puppetlabs/puppetlabs-java/pull/363) ([eimlav](https://github.com/eimlav)) ## [v4.0.0](https://github.com/puppetlabs/puppetlabs-java/tree/v4.0.0) (2019-05-20) [Full Changelog](https://github.com/puppetlabs/puppetlabs-java/compare/3.3.0...v4.0.0) ### Changed - pdksync - \(MODULES-8444\) - Raise lower Puppet bound [\#356](https://github.com/puppetlabs/puppetlabs-java/pull/356) ([david22swan](https://github.com/david22swan)) ### Added - \(FM-7921\) - Implement Puppet Strings [\#353](https://github.com/puppetlabs/puppetlabs-java/pull/353) ([david22swan](https://github.com/david22swan)) - Update default version & java 8 version from 8u192 to 8u201 [\#347](https://github.com/puppetlabs/puppetlabs-java/pull/347) ([valentinsavenko](https://github.com/valentinsavenko)) - Add ability to override basedir and package type for oracle java [\#345](https://github.com/puppetlabs/puppetlabs-java/pull/345) ([fraenki](https://github.com/fraenki)) - MODULES-8613: Add option to set a custom JCE download URL [\#344](https://github.com/puppetlabs/puppetlabs-java/pull/344) ([HielkeJ](https://github.com/HielkeJ)) ### Fixed - MODULES-8698: Fix $install\_path on CentOS with tar.gz package type [\#349](https://github.com/puppetlabs/puppetlabs-java/pull/349) ([fraenki](https://github.com/fraenki)) ## [3.3.0](https://github.com/puppetlabs/puppetlabs-java/tree/3.3.0) (2019-01-17) [Full Changelog](https://github.com/puppetlabs/puppetlabs-java/compare/3.2.0...3.3.0) ### Added - \(MODULES-8234\) - Add SLES 15 support [\#336](https://github.com/puppetlabs/puppetlabs-java/pull/336) ([eimlav](https://github.com/eimlav)) - \(MODULES-8234\) - Upgrade Oracle Java version to 8u192 [\#334](https://github.com/puppetlabs/puppetlabs-java/pull/334) ([eimlav](https://github.com/eimlav)) - Support for installing JCE. Fixes MODULES-1681 [\#326](https://github.com/puppetlabs/puppetlabs-java/pull/326) ([dploeger](https://github.com/dploeger)) - MODULES-8044: upgrade Oracle Java 8 to 181, make it the default release [\#314](https://github.com/puppetlabs/puppetlabs-java/pull/314) ([ojongerius](https://github.com/ojongerius)) ### Fixed - pdksync - \(FM-7655\) Fix rubygems-update for ruby \< 2.3 [\#338](https://github.com/puppetlabs/puppetlabs-java/pull/338) ([tphoney](https://github.com/tphoney)) - \(FM-7520\) - Removing Solaris from the support matrix [\#335](https://github.com/puppetlabs/puppetlabs-java/pull/335) ([pmcmaw](https://github.com/pmcmaw)) - Optimized code for making java::oracle atomic. Fixes MODULES-8085 [\#330](https://github.com/puppetlabs/puppetlabs-java/pull/330) ([dploeger](https://github.com/dploeger)) - Fix OpenJDK paths on Debian based OS with ARM [\#329](https://github.com/puppetlabs/puppetlabs-java/pull/329) ([mmoll](https://github.com/mmoll)) - \(MODULES-7050\) - Fix OracleJDK reinstalling on Puppet runs [\#323](https://github.com/puppetlabs/puppetlabs-java/pull/323) ([eimlav](https://github.com/eimlav)) - \(MODULES-8025\) Switch default for Ubuntu 18.04 to 11 [\#322](https://github.com/puppetlabs/puppetlabs-java/pull/322) ([baurmatt](https://github.com/baurmatt)) - MODULES-7819 fix set JAVA\_HOME environments on FreeBSD platform [\#315](https://github.com/puppetlabs/puppetlabs-java/pull/315) ([olevole](https://github.com/olevole)) ## [3.2.0](https://github.com/puppetlabs/puppetlabs-java/tree/3.2.0) (2018-09-27) [Full Changelog](https://github.com/puppetlabs/puppetlabs-java/compare/3.1.0...3.2.0) ### Added - pdksync - \(MODULES-6805\) metadata.json shows support for puppet 6 [\#317](https://github.com/puppetlabs/puppetlabs-java/pull/317) ([tphoney](https://github.com/tphoney)) ## [3.1.0](https://github.com/puppetlabs/puppetlabs-java/tree/3.1.0) (2018-09-06) [Full Changelog](https://github.com/puppetlabs/puppetlabs-java/compare/3.0.0...3.1.0) ### Added - pdksync - \(MODULES-7705\) - Bumping stdlib dependency from \< 5.0.0 to \< 6.0.0 [\#310](https://github.com/puppetlabs/puppetlabs-java/pull/310) ([pmcmaw](https://github.com/pmcmaw)) ## [3.0.0](https://github.com/puppetlabs/puppetlabs-java/tree/3.0.0) (2018-08-13) [Full Changelog](https://github.com/puppetlabs/puppetlabs-java/compare/2.4.0...3.0.0) ### Changed - \[FM-6963\] Removal of unsupported OS from java [\#295](https://github.com/puppetlabs/puppetlabs-java/pull/295) ([david22swan](https://github.com/david22swan)) ### Added - \(MODULES-7561\) - Addition of support for Ubuntu 18.04 to java [\#299](https://github.com/puppetlabs/puppetlabs-java/pull/299) ([david22swan](https://github.com/david22swan)) ### Fixed - Remove ensure\_resource to avoid potential conflict [\#287](https://github.com/puppetlabs/puppetlabs-java/pull/287) ([sevencastles](https://github.com/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](https://tickets.puppetlabs.com/browse/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 than `readlink` 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](https://tickets.puppet.com/browse/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 for `java_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` and `version_minor` parameters for specifying Java SE version to install - `$JAVA_HOME` now set by the module on compatible systems. The `java_home` parameter is also provided for manual setting. [MODULES-2971](https://tickets.puppetlabs.com/browse/MODULES-2971) - `proxy_server` and `proxy_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](https://tickets.puppetlabs.com/browse/MODULES-4050) - Order of operations for archives [MODULES-4751](https://tickets.puppetlabs.com/browse/https://tickets.puppetlabs.com/browse/MODULES-4751) - Increase Xmx setting for `java_version` fact [MODULES-4736](https://tickets.puppetlabs.com/browse/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 the `update-java-alternatives` command when installed from a `headless` 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 * Update java packages for Fedora systems ## 2013-07-29 - Version 1.0.0 #### Detailed Changes Krzysztof Suszyński * Adding support for Oracle Enterprise Linux Peter Drake * Add support for natty Robert Munteanu * Add support for OpenSUSE Martin Jackson * Added support Amazon Linux using facter >= 1.7.x Gareth Rushgrove Brett Porter * Fixes for older versions of CentOS * Improvements to module build and tests Nathan R Valentine * Add support for Ubuntu quantal and raring Sharif Nassar * Add support for Debian alternatives, and more than one JDK/JRE per platform. ## 2013-04-04 - Version 0.3.0 Reid Vandewiele - * Refactor, introduce params pattern ## 2012-11-15 - Version 0.2.0 Scott Schneider * Add Solaris support ## 2011-06-16 - Version 0.1.5 Jeff McCune * Add Debian based distro (Lucid) support ## 2011-06-02 - Version 0.1.4 Jeff McCune * Fix class composition ordering problems ## 2011-05-28 - Version 0.1.3 Jeff McCune * Remove stages ## 2011-05-26 - Version 0.1.2 Jeff McCune * Changes JRE/JDK selection class parameter to $distribution ## 2011-05-25 - Version 0.1.1 Jeff McCune * Re-did versioning to follow semantic versioning * Add validation of class parameters ## 2011-05-24 - Version 0.1.0 Jeff McCune * Default to JDK version 6u25 ## 2011-05-24 - Version 0.0.1 Jeff McCune * Initial release [2.3.0]:https://github.com/puppetlabs/puppetlabs-java/compare/2.2.0...2.3.0 [2.2.0]:https://github.com/puppetlabs/puppetlabs-java/compare/2.1.1...2.2.0 -\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)* +\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)* diff --git a/REFERENCE.md b/REFERENCE.md index a54ce03..654ee16 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -1,436 +1,484 @@ # Reference ## Table of Contents ### Classes #### Public Classes * [`java`](#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`](#javaadopt): Install one or more versions of AdoptOpenJDK Java. * [`java::download`](#javadownload): Installs Java from a url location. * [`java::sap`](#javasap): Install one or more versions of SAPJVM or Sapmachine ## Classes -### `java` +### `java` This module manages the Java runtime package #### Parameters -The following parameters are available in the `java` class. +The following parameters are available in the `java` class: -##### `distribution` +* [`distribution`](#distribution) +* [`version`](#version) +* [`package`](#package) +* [`package_options`](#package_options) +* [`java_alternative`](#java_alternative) +* [`java_alternative_path`](#java_alternative_path) +* [`java_home`](#java_home) + +##### `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` +##### `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` +##### `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` +##### `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` +##### `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` +##### `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` +##### `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` +### `java::adopt` Defined Type java::adopt #### Parameters -The following parameters are available in the `java::adopt` defined type. +The following parameters are available in the `java::adopt` defined type: + +* [`ensure`](#ensure) +* [`version`](#version) +* [`version_major`](#version_major) +* [`version_minor`](#version_minor) +* [`java`](#java) +* [`proxy_server`](#proxy_server) +* [`proxy_type`](#proxy_type) +* [`basedir`](#basedir) +* [`manage_basedir`](#manage_basedir) +* [`package_type`](#package_type) +* [`manage_symlink`](#manage_symlink) +* [`symlink_name`](#symlink_name) -##### `ensure` +##### `ensure` Data type: `Any` Install or remove the package. Default value: `'present'` -##### `version` +##### `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` +##### `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` +##### `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` +##### `java` Data type: `Any` Type of Java Standard Edition to install, jdk or jre. Default value: `'jdk'` -##### `proxy_server` +##### `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` +##### `proxy_type` Data type: `Any` Proxy server type (none|http|https|ftp). (passed to archive) Default value: ``undef`` -##### `basedir` +##### `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` +##### `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` +##### `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` +##### `manage_symlink` Data type: `Any` Whether to manage a symlink that points to the installation directory. Defaults to false. Default value: ``false`` -##### `symlink_name` +##### `symlink_name` Data type: `Any` The name for the optional symlink in the installation directory. Default value: ``undef`` -### `java::download` +### `java::download` Defined Type java::download #### Parameters -The following parameters are available in the `java::download` defined type. +The following parameters are available in the `java::download` defined type: -##### `ensure` +* [`ensure`](#ensure) +* [`version`](#version) +* [`version_major`](#version_major) +* [`version_minor`](#version_minor) +* [`java_se`](#java_se) +* [`proxy_server`](#proxy_server) +* [`proxy_type`](#proxy_type) +* [`url`](#url) +* [`jce`](#jce) +* [`jce_url`](#jce_url) +* [`basedir`](#basedir) +* [`manage_basedir`](#manage_basedir) +* [`package_type`](#package_type) +* [`manage_symlink`](#manage_symlink) +* [`symlink_name`](#symlink_name) + +##### `ensure` Data type: `Any` Install or remove the package. Default value: `'present'` -##### `version` +##### `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` +##### `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` +##### `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` +##### `java_se` Data type: `Any` Type of Java Standard Edition to install, jdk or jre. Default value: `'jdk'` -##### `proxy_server` +##### `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` +##### `proxy_type` Data type: `Any` Proxy server type (none|http|https|ftp). (passed to archive) Default value: ``undef`` -##### `url` +##### `url` Data type: `Any` Full URL Default value: ``undef`` -##### `jce` +##### `jce` Data type: `Any` Install Oracles Java Cryptographic Extensions into the JRE or JDK Default value: ``false`` -##### `jce_url` +##### `jce_url` Data type: `Any` Full URL to the jce zip file Default value: ``undef`` -##### `basedir` +##### `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` +##### `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` +##### `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` +##### `manage_symlink` Data type: `Any` Whether to manage a symlink that points to the installation directory. Defaults to false. Default value: ``false`` -##### `symlink_name` +##### `symlink_name` Data type: `Any` The name for the optional symlink in the installation directory. Default value: ``undef`` -### `java::sap` +### `java::sap` Defined Type java::sap #### Parameters -The following parameters are available in the `java::sap` defined type. +The following parameters are available in the `java::sap` defined type: + +* [`ensure`](#ensure) +* [`version`](#version) +* [`version_full`](#version_full) +* [`java`](#java) +* [`proxy_server`](#proxy_server) +* [`proxy_type`](#proxy_type) +* [`basedir`](#basedir) +* [`manage_basedir`](#manage_basedir) +* [`manage_symlink`](#manage_symlink) +* [`symlink_name`](#symlink_name) -##### `ensure` +##### `ensure` Data type: `Any` Install or remove the package. Default value: `'present'` -##### `version` +##### `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` +##### `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` +##### `java` Data type: `Any` Type of Java Edition to install, jdk or jre. Default value: `'jdk'` -##### `proxy_server` +##### `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` +##### `proxy_type` Data type: `Any` Proxy server type (none|http|https|ftp). (passed to archive) Default value: ``undef`` -##### `basedir` +##### `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` +##### `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` +##### `manage_symlink` Data type: `Any` Whether to manage a symlink that points to the installation directory. Defaults to false. Default value: ``false`` -##### `symlink_name` +##### `symlink_name` Data type: `Any` The name for the optional symlink in the installation directory. Default value: ``undef`` diff --git a/metadata.json b/metadata.json index bd3182c..a5206cd 100644 --- a/metadata.json +++ b/metadata.json @@ -1,84 +1,84 @@ { "name": "puppetlabs-java", - "version": "6.5.0", + "version": "7.0.0", "author": "puppetlabs", "summary": "Installs the correct Java package on various platforms.", "license": "Apache-2.0", "source": "git://github.com/puppetlabs/puppetlabs-java", "project_page": "https://github.com/puppetlabs/puppetlabs-java", "issues_url": "https://tickets.puppet.com/CreateIssueDetails!init.jspa?pid=10707&issuetype=1&team=Modules&customfield_14200=14302&labels=triage&customfield_10005=2147&summary=Issue+found+with+module%3A+puppetlabs-java", "dependencies": [ { "name": "puppetlabs/stdlib", "version_requirement": ">= 4.13.1 < 8.0.0" }, { "name": "puppet/archive", "version_requirement": ">= 1.1.0 < 5.0.0" } ], "operatingsystem_support": [ { "operatingsystem": "RedHat", "operatingsystemrelease": [ "6", "7", "8" ] }, { "operatingsystem": "CentOS", "operatingsystemrelease": [ "6", "7", "8" ] }, { "operatingsystem": "OracleLinux", "operatingsystemrelease": [ "6", "7" ] }, { "operatingsystem": "Scientific", "operatingsystemrelease": [ "6" ] }, { "operatingsystem": "Debian", "operatingsystemrelease": [ "8", "9", "10" ] }, { "operatingsystem": "Ubuntu", "operatingsystemrelease": [ "14.04", "16.04", "18.04", "20.04" ] }, { "operatingsystem": "SLES", "operatingsystemrelease": [ "12", "15" ] } ], "requirements": [ { "name": "puppet", "version_requirement": ">= 6.0.0 < 8.0.0" } ], "template-url": "https://github.com/puppetlabs/pdk-templates.git#main", "template-ref": "heads/main-0-g2bf2de6", "pdk-version": "1.18.1" }