- Overview
- Module Description - What the module does and why it is useful
- Setup - The basics of getting started with windows_java
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations
- Development
This tool is for downloading and installing Oracle Java
This module can be used to install one or multiple JDK versions from Oracle
- Installs/removes multiple versions of Oracle Java
- Updates PATH and JAVA_HOME if default set true
####Install Oracle JDK Version 8u45
include 'windows_java'
This will install Oracle JDK version 8 update 45
####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,
}
ensure
: Optional. Whether to install or remove the versionversion
: 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
ensure
: Optional. Whether to install or remove the versionversion
: 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 Oracledefault
: Optional. Whether to update and set the JAVA_HOME and include in PATH environment variablesinstall_name
: Optional. The package name but is inferred by version being installedinstall_path
: Optional. The location to install JDK to.source
: Optional. Alternate source to download from, can be puppet:// http(s):// urltemp_target
: Optional. Temp target for downloading the JDK installer to, defaults to ENV['TEMP']