Puppet Class: oracle_java::alternative

Defined in:
manifests/alternative.pp

Overview

Class: oracle_java::alternative

This class calls the appropriate subclass to install a new java alternative



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'manifests/alternative.pp', line 5

class oracle_java::alternative {
  # The base class must be included first
  if !defined(Class['oracle_java']) {
    fail('You must include the oracle_java base class before using any oracle_java sub class')
  }

  case $::osfamily {
    /RedHat|Suse/ : {
      contain oracle_java::alternative::rpm
    }
    'Debian'      : {
      contain oracle_java::alternative::deb
    }
    default       : {
      notice("\"${::operatingsystem}\" does not support alternatives, you should explicitly disable it for this host")
    }
  }
}