schrepfler / puppet-jdk_oracle

Puppet module to install JDK from oracle using wget
Other
1 stars 7 forks source link

puppet-jdk_oracle

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

Default Version

Features

Installation

Usage

Traditional
include jdk_oracle

or

class { 'jdk_oracle': }
Hiera

config.json:

{
    classes":[
      "jdk_oracle"
    ]
}

OR config.yaml:

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

site.pp:

hiera_include("classes", [])

Parameters:

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.)

TODO: