Forge Home

java

Install Java JRE and JDK 1.7 along with Maven and Gradle 2.3

9,253 downloads

9,079 latest version

3.9 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
released Apr 27th 2015
This version is compatible with:

Start using this module

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

Add this module to your Puppetfile:

mod 'darkmantle-java', '1.0.2'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add darkmantle-java
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install darkmantle-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, openjdk

Documentation

darkmantle/java — version 1.0.2 Apr 27th 2015

Darkmantle Puppet: Java

This is the Java module in my series of WebDev Puppet Configurations

Dependencies

apt by puppetlabs

Installation

Make sure you install the dependencies above!

Puppet

puppet module install darkmantle-java

Git Submodule

git submodule add https://github.com/darkmantle/puppet-java.git modules/java

Usage

Create a manifest that has the following code:

Exec {
  path => ["/usr/bin", "/bin", "/usr/sbin", "/sbin", "/usr/local/bin", "/usr/local/sbin"]
}

# basic install (version 7)
include java

# optional: if you want a lower or higher version (5,6 or 8 for example) and you know its available in the repository
# under the default name of openjdk-*-jdk then you can use this method
class { 'java:' $version => '8' }