Puppet Class: psick::java

Defined in:
manifests/java.pp

Overview

This class manages JAVA installation By default it installs both the OpenJDK JRE and JDK packages.

Parameters:

  • openjdk_jdk_ensure (Enum['present','absent']) (defaults to: 'present')

    Define if to install OpenJDK JDK

  • openjdk_jre_ensure (Enum['present','absent']) (defaults to: 'present')

    Define if to install OpenJDK JRE

  • manage (Boolean) (defaults to: $psick::manage)
  • noop_manage (Boolean) (defaults to: $psick::noop_manage)
  • noop_value (Boolean) (defaults to: $psick::noop_value)


7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'manifests/java.pp', line 7

class psick::java (
  Enum['present','absent'] $openjdk_jdk_ensure = 'present',
  Enum['present','absent'] $openjdk_jre_ensure = 'present',
  Boolean $manage                              = $psick::manage,
  Boolean $noop_manage                         = $psick::noop_manage,
  Boolean $noop_value                          = $psick::noop_value,
) {
  if $manage {
    if $noop_manage {
      noop($noop_value)
    }
    tp::install { 'openjdk-jdk':
      ensure => $openjdk_jdk_ensure,
    }
    tp::install { 'openjdk-jre':
      ensure => $openjdk_jre_ensure,
    }
  }
}