Forge Home


Module to install a JDK from the RPM binary distribution from oracle using wget.


6,143 latest version

4.6 quality score

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 Dec 25th 2017
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', '1.0.10'
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 1.0.10

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.

Tags: java, jdk, oracle, rpm


schrepfler/jdk_oracle — version 1.0.10 Dec 25th 2017


Build Status Puppet Forge Puppet Forge Downloads

Puppet module to install a JDK from the RPM binary distribution from oracle using wget. Based on the this module removed support for JDK6 and the tgz installer.


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:

Default Version

  • JDK8 8u151
  • JDK7 7u80


  • RedHat Family (RedHat, Fedora, CentOS)
  • Java 7 and Java 8
  • Possibility to choose between 64 bit arch=x64 (default) and 32 bit arch=i586 architectures.
  • Possibility to install JCE on JDK8


  • Traditional

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

  • From Puppet Forge

    Install from Puppet Forge:

$ puppet module install schrepfler-jdk_oracle
  • Puppet Librarian

    Put this in your Puppetfile:

    mod "schrepfler/jdk_oracle",
        :git => "git://"


include jdk_oracle


class { 'jdk_oracle': }



OR config.yaml:

- "jdk_oracle"
jdk_oracle::version: 7


hiera_include("classes", [])


version (integer 7 | 8) - Java version to install.

arch (enum 'x64'|'586') - parameter to provide support for other architectures, default 'x64'.

install_dir (string) - Java installation directory.

tmp_dir (string) - Temp directory to download the installer, default '/tmp'.

use_cache (string) - Optionally host the installer file locally instead of fetching it each time, for faster dev & test.

cache_source (string) - The directory where the installer will be cached.

jce (boolean) - if true will install the Java Cryptographic Extensions (default false.)

default_java (boolean) - if true the module will set the installed JDK to be the default system java (default true.)


  • Automate installation of security policies security policies reference
  • Handle JCE installation
  • 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
  • Automate a bit the release process (bump README, Contributors, changelog...)