Forge Home

corp104_java

Install, deploysm, and configures Java.

8,184 downloads

5,639 latest version

3.1 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.1.2 (latest)
  • 1.1.0
  • 1.0.1
  • 1.0.0
released May 30th 2018
This version is compatible with:
  • Puppet 4.7.0 < 6.0.0
  • , , ,

Start using this module

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

Add this module to your Puppetfile:

mod '104corp-corp104_java', '1.1.2'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add 104corp-corp104_java
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install 104corp-corp104_java --version 1.1.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

Documentation

104corp/corp104_java — version 1.1.2 May 30th 2018

puppet module corp104_java

Build Status

Table of Contents

  1. Description
  2. Setup - The basics of getting started with corp104_java
  3. Usage - Configuration options and additional functionality
  4. Reference - An under-the-hood peek at what the module is doing and how
  5. Limitations - OS compatibility, etc.
  6. Development - Guide for contributing to the module

Description

The corp104_java module installs, configures, and manages the corp104_java service across a range of operating systems and distributions.

Setup

Beginning with corp104_java

include '::corp104_java' is enough to get you up and running.

Usage

All parameters for the ntp module are contained within the main ::corp104_java class, so for any function of the module, set the options you want. See the common usages below for examples.

Install and enable corp104_java

include '::corp104_java'

Configuring JDK version

support OpenJDK 7/8/9, OracleJDK 8/9 default version 1.8

class { '::corp104_java':
  jdk_version => '8',
}

Configuring JDK type (default OpenJDK)

class { '::corp104_java':
  jdk_type => 'oraclejdk',
}

Use Proxy (only Oracle JDK)

class { '::corp104_java':
  jdk_type   => 'oraclejdk',
  http_proxy => 'http://proxy.com:3128',
}

Reference

Classes

Public classes

  • corp104_java: Main class, includes all other classes.

Private classes

  • corp104_java::install: Handles the packages.
  • corp104_java::config: Handles the config.

Limitations

This module cannot guarantee installation of Java versions that are not available on platform repositories.

This module only manages a singular installation of Java, meaning it is not possible to manage e.g. OpenJDK 7 and Oracle Java 8 in parallel on the same system.

Oracle Java packages are not included in Debian 7 and Ubuntu 12.04/14.04 repositories. To install Java on those systems, you'll need to package Oracle JDK/JRE, and then the module can install the package. For more information on how to package Oracle JDK/JRE, see the Debian wiki.

This module is officially supported for the following Java versions and platforms:

OpenJDK is supported on:

  • Red Hat Enterprise Linux (RHEL) 5, 6, 7
  • CentOS 5, 6, 7
  • Debian 6, 7
  • Ubuntu 12.04, 14.04, 16.04

Sun Java is supported on:

  • Debian 6

Oracle Java is supported on:

  • CentOS 6

Development

Puppet modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. Please follow our guidelines when contributing changes.

For more information, see our module contribution guide.

Contributors

To see who's already involved, see the list of contributors.