Forge Home

windows_java

Windows Oracle Java

59,404 downloads

55,350 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.2 (latest)
  • 1.0.1
  • 1.0.0
  • 0.3.0
  • 0.2.0
  • 0.1.1
released Jul 3rd 2015
This version is compatible with:
  • Puppet Enterprise 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
  • Puppet >= 3.3.0 < 5.0.0

Start using this module

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

Add this module to your Puppetfile:

mod 'cyberious-windows_java', '1.0.2'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add cyberious-windows_java
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install cyberious-windows_java --version 1.0.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

Documentation

cyberious/windows_java — version 1.0.2 Jul 3rd 2015

windows_java

Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with windows_java
  4. Usage - Configuration options and additional functionality
  5. Reference - An under-the-hood peek at what the module is doing and how
  6. Limitations
  7. Development

Overview

This tool is for downloading and installing Oracle Java

Module Description

This module can be used to install one or multiple JDK versions from Oracle

Setup

What windows_java affects

  • Installs/removes multiple versions of Oracle Java
  • Updates PATH and JAVA_HOME if default set true

Beginning with windows_java

####Install Oracle JDK Version 8u45

 include 'windows_java'

This will install Oracle JDK version 8 update 45

Usage

####Install JDK 7u51 and not as default

windows_java::jdk{'7u51':
  default => false,
}

####Install JDK 7u51 non default location

windows_java::jdk{'7u51':
  install_path => 'G:\java\jdk7u51',
  default      => false,
}

Reference

Classes

windows_java

  • ensure: Optional. Whether to install or remove the version
  • version: Optional. What version of the jdk to install. Defaults to '8u45'
  • arch: Optional. What architecture you want to install, Valid options are 'x64','i586'. Default is: $::architecture
  • default: Optional. Whether to update and set the JAVA_HOME and include in PATH environment variables

Types

windows_java::jdk

  • ensure: Optional. Whether to install or remove the version
  • version: Optional. What version of the jdk to install. Defaults to '8u45'
  • arch: Optional. What architecture you want to install, Valid options are 'x64','i586'. Default is: $::architecture
  • build_number_hash: Optional. Build number lookup hash for looking up url build numbers {'8u45' => 'b15' }
  • cookie_string: Optional. The cookie string required to download the JDK from Oracle
  • default: Optional. Whether to update and set the JAVA_HOME and include in PATH environment variables
  • install_name: Optional. The package name but is inferred by version being installed
  • install_path: Optional. The location to install JDK to.
  • source: Optional. Alternate source to download from, can be puppet:// http(s):// url
  • temp_target: Optional. Temp target for downloading the JDK installer to, defaults to ENV['TEMP']