oracle_java
Version information
This version is compatible with:
- Puppet Enterprise >= 3.0.0
- Puppet >= 2.7.0
- RedHat, CentOS, OracleLinux, Scientific, Amazon, Fedora, SuSE, OpenSuSE, SLES, SLED, Mageia, Mandriva, Mandrake
Start using this module
Add this module to your Puppetfile:
mod 'aco-oracle_java', '1.1.3'
Learn more about managing modules with a PuppetfileDocumentation
#oracle_java
####Table of Contents
##Overview
The oracle_java module allows you to install the Oracle JRE or JDK of your choice from the official RPM archives provided by Oracle.
##Module description
Oracle provides a RPM version of both its JRE and JDK for every Java release. These packages are available from the Oracle Java SE Downloads and Oracle Java Archive pages.
This module simply downloads the desired Java version and installs it on the target system. It is intended for systems which do not need to have several Java versions installed in parallel and for users looking for an easy way to update their Java environment.
It currently supports all released versions from Java SE 6 on.
##Setup
oracle_java will affect the following parts of your system:
- jre/jdk package
- 'java' alternative
Including the main class is enough to install the latest version of the Oracle JRE.
include ::oracle_java
####A couple of examples
Install the latest release of the Java 7 SE JRE
class { '::oracle_java':
version => 7
}
Install the latest available JDK
class { '::oracle_java':
type => 'jdk'
}
Install a specific version of the JDK
class { '::oracle_java':
version => '7u45',
type => 'jdk'
}
##Usage
####Class: oracle_java
Primary class and entry point of the module.
Parameters within oracle_java
:
#####version
Java version to install, formated as 'major_version'u'minor_version' or simply 'major_version' for the latest available release in the selected Java SE series. Defaults to '8'
Note: a minor version of '0' (for example '8u0') matches the initial release of the selected Java SE series.
#####type
What envionment type to install. Valid values are 'jre' and 'jdk'. Defaults to 'jre'
##Limitations
- 2 different releases of the same Java series can not cohabit on the same system when installed from RPM. Each new version will override the previous one.
- Works only on RPM-based distributions
##Credits
This module relies almost entirely on all the nice information found on Ivan Dyedov's Blog
##To Do
- Add Oracle Java as a 'java' alternative (will craft a dedicated module for that purpose)
- Allow the manipulation of Java related environment variables
- Propose an alternative based on tar.gz archives, also available from Oracle's archives
Features request and contributions are always welcome!
###1.1.3
- Add support for Java '8u20'
###1.1.2
- Add support for Java '7u67'
- Make Puppet Doc compliant with RDoc markup language
###1.1.1
- Add parameters validation
- Updated documentation
- Minor refactoring
###1.1.0
- Add support for Java SE 6 series
###1.0.1
- Add support for Java '7u65' and '8u11'
###1.0.0
First forge release
Dependencies
- puppetlabs/stdlib (>= 3.2.0)
Copyright 2014 Antoine Cotten 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.