Forge Home

windows_java

Windows Oracle Java

59,524 downloads

55,436 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

  • 1.0.2 (latest)
  • 1.0.1
  • 1.0.0
  • 0.3.0
  • 0.2.0
  • 0.1.1
released Oct 11th 2014

Start using this module

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

Add this module to your Puppetfile:

mod 'cyberious-windows_java', '0.3.0'
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 0.3.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

cyberious/windows_java — version 0.3.0 Oct 11th 2014

#Windows Oracle Java module for Puppet Build Status

Downloads and installs Oracle Java or any other version of Java that you may require

##Usage

class{'windows_java':}

Using the module_data we can simply provide hiera backend data to allow for more simplistic version updating.

windows_java::jdk{'Install 7u51':
    version => '7u51',
}

If you want to declare everything you can

windows_java::jdk{'JDK 7u45':
    install_name = 'Java SE Development Kit 7 Update 45 (64-bit)',
    ensure      = 'present',
    install_path= "c:\\java\\jdk1.7.0_45",
    source      = "http://download.oracle.com/otn-pub/java/jdk/7u45-b18/jdk-7u45-windows-x64.exe"
}

Hiera Backend

You can override the backend if you have paths that you prefer including source

windows_java: {
    root_url: "puppet:///extra_files/jdk/
    7u11: {
        build_number: "",
        x64: {
            install_path: "C:\\Java\\jdk1.7.0_11",
            file_name: "mycustom-jdk-file.exe"
        }

    }
}