Forge Home

jdk_oracle

Module for automating Oracle JDK download and installation by using the RPM binary distribution from oracle and wget.

20,711 downloads

6,481 latest version

4.3 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

  • 1.0.10 (latest)
  • 1.0.9
  • 1.0.8
  • 1.0.7
  • 1.0.6
  • 1.0.5
  • 1.0.4 (deleted)
  • 1.0.3
  • 1.0.1 (deleted)
  • 1.0.0 (deleted)
  • 0.9.7
  • 0.9.6
  • 0.9.5
  • 0.9.4 (deleted)
  • 0.9.3
  • 0.9.2
  • 0.8.1
  • 0.8.0
released Aug 26th 2014
This version is compatible with:

Start using this module

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

Add this module to your Puppetfile:

mod 'schrepfler-jdk_oracle', '0.9.2'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add schrepfler-jdk_oracle
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install schrepfler-jdk_oracle --version 0.9.2

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, oracle, rpm

Documentation

schrepfler/jdk_oracle — version 0.9.2 Aug 26th 2014

puppet-jdk_oracle

Puppet module to install a JDK from the RPM binary distribution from oracle using wget. Based on the https://github.com/tylerwalts/puppet-jdk_oracle this module removed support for JDK6 and the tgz installer.

Source: http://www.oracle.com/technetwork/java/javase/downloads/index.html

Note: By using this module you will automatically accept the Oracle agreement to download Java.

This module will work on Redhat family of OSs, and will use wget with a cookie to automatically grab the RPM installer from Oracle.

This approach was inspired by: http://stackoverflow.com/questions/10268583/how-to-automate-download-and-instalation-of-java-jdk-on-linux

Currently Supported:

  • RedHat Family (RedHat, Fedora, CentOS)
  • Java 7 and Java 8
  • 64 and 32 bit architectures.

Installation:

A) Traditional:

  • Copy this project into your puppet modules path and rename to "jdk_oracle"

B) From Puppet Forge

  • Install from Puppet Forge:
$ puppet module install schrepfler-jdk_oracle

C) Puppet Librarian:

  • Put this in your Puppetfile:
    mod "jdk_oracle",
        :git => "git://github.com/schrepfler/puppet-jdk_oracle.git"

Usage:

A) Traditional:

    include jdk_oracle

or

    class { 'jdk_oracle': }

B) Hiera: config.json:

    {
        classes":[
          "jdk_oracle"
        ]
    }

OR config.yaml:

---
  classes: 
    - "jdk_oracle"
  jdk_oracle::version: "7"

site.pp:

    hiera_include("classes", [])

Parameters:

  • version
    • Java Version to install
  • install_dir
    • Java Installation Directory
  • tmp_dir
    • Temp directory to download the installer, default /tmp/
  • version7update
    • Latest Java 7 Update version
  • version7build
    • Latest Java 7 Build version
  • version8update
    • Latest Java 8 Update version
  • version8build
    • Latest Java 8 Build version
  • arch
    • parameter to provide support for other architectures, default x64
  • use_cache
    • Optionally host the installer file locally instead of fetching it each time, for faster dev & test

TODO:

  • Automate installation of security policies
  • Refactor tests to support some use cases of the tgz module
  • Add support for 32-bit JDK
  • Add build status icons
  • Make it possible to uninstall the jdk package