Installs Oracle JDK or JRE 1.6; 1.7 or 1.8. Tested on Ubuntu 12.04, Debian 7, and CentOS 6.4 and Mac OSX using Puppetry.
- Clone module to your puppetmaster or masterless modules directory.
- Change name of module from puppet-oracle-java to oracle_java
- Download jdk or jre 1.6; 1.7 or 1.8 from Oracle and place the package in the oracle_java/files directory (do not rename).
For a quick install, edit the params in the init.pp file and simply add ‘include oracle_java’ to your manifest.
- Declare the class:
class { "oracle_java":
type => "type",
arc => "arc,
version => "version",
os => "os",
}
It is import that you match the params with the java package you downloaded from oracle.
For example, if you downloaded the jdk-7u21-linux-x64.tar.gz, your params should be:
type => “jdk”
arc => “x64“
version => “7u21“
os => “linux”
###Contrib
Fork and request!