Forge Home

oracle_java

Puppet module to install Oracle Java on RPM-based Linux systems

112,741 downloads

16,848 latest version

4.8 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
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.

Version information

  • 2.9.4 (latest)
  • 2.9.3
  • 2.9.2
  • 2.9.1
  • 2.9.0
  • 2.8.3
  • 2.8.2
  • 2.8.1
  • 2.8.0
  • 2.7.4
  • 2.7.3
  • 2.7.2
  • 2.7.1
  • 2.7.0 (deleted)
  • 2.7.0-hf
  • 2.6.3
  • 2.6.2
  • 2.6.1
  • 2.6.0
  • 2.5.1
  • 2.5.0
  • 2.4.2
  • 2.4.1
  • 2.4.0
  • 2.3.0
  • 2.2.7
  • 2.2.6
  • 2.2.5 (deleted)
  • 2.2.4
  • 2.2.3
  • 2.2.2
  • 2.2.1
  • 2.2.0
  • 2.1.0
  • 2.0.0
  • 1.1.5
  • 1.1.4
  • 1.1.3
  • 1.1.2
  • 1.1.1
  • 1.1.0
  • 1.0.1
  • 1.0.0
released Aug 23rd 2014
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

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'aco-oracle_java', '1.1.3'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add aco-oracle_java
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install aco-oracle_java --version 1.1.3

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download
Tags: java, jdk, jre, oracle

Documentation

aco/oracle_java — version 1.1.3 Aug 23rd 2014

#oracle_java

####Table of Contents

  1. Overview
  2. Module Description
  3. Setup
  4. Usage
  5. Limitations
  6. Credits
  7. To Do

##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!