Forge Home

jdk_oracle

Module for automating Oracle JDK download and installation

88,755 downloads

27,146 latest version

3.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.0.0 (latest)
  • 1.5.0
  • 1.4.0
  • 1.3.3
  • 1.3.2
  • 1.2.1
  • 1.2.0
  • 1.1.0
released Mar 18th 2014

Start using this module

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

Add this module to your Puppetfile:

mod 'tylerwalts-jdk_oracle', '1.2.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

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

Manually install this module globally with Puppet module tool:

puppet module install tylerwalts-jdk_oracle --version 1.2.0

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

Documentation

tylerwalts/jdk_oracle — version 1.2.0 Mar 18th 2014

puppet-jdk_oracle

Puppet module to install a JDK from oracle using wget.

Build Status

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.

There are several puppet modules available that will help install Oracle JDK, but they either use the Debian repository, or depend on the user to manually place the Oracle Java installer in the module's file directory prior to using. This module will work on Redhat family of OSs, and will use wget with a cookie to automatically grab the 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 6, 7

  • This may work on other linux flavors but more testing is needed. Please seend feedback!

Installation:

A) Traditional:

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

B) Puppet Librarian:

  • Put this in your Puppetfile: From Forge:
mod "tylerwalts/jdk_oracle"

From Source:

    mod "jdk_oracle",
        :git => "git://github.com/tylerwalts/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: "6"

site.pp:

    hiera_include("classes", [])

Parameters:

  • version
    • Java Version to install
  • java_install_dir
    • Java Installation Directory
  • use_cache
    • Optionally host the installer file locally instead of fetching it each time, for faster dev & test
  • platform
    • The platform to use