Forge Home

windows_java

Windows Oracle Java

59,733 downloads

55,575 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.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

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