Puppet Class: wls_profile::weblogic::java_software

Inherits:
wls_profile
Defined in:
manifests/weblogic/java_software.pp

Summary

This class is the default implementation for making sure the Java software is correctly installed on your system.

Overview

+--+

wls_profile::java_software

Using hiera, you can customize some of the aspects of this process.

When these customizations aren't enough, you can replace the class with your own class. See wls_profile::weblogic for an explanation on how to do this.

–++–

Parameters:

  • version (String)

    The version of java you want to use. This value is used in multiple places. To make sure in all classed the correct value is used, use the hiera key wls_profile::java_version to change it to your requested value. Default value: 8u152

  • full_version (String)

    The full version of java you want to use. This value is used in multiple places. To make sure in all classed the correct value is used, use the hiera key wls_profile::java_full_version to change it to your requested value. Default value: jdk1.8.0_152

  • cryptography_extension_file (String)

    Cryptographic extension file to use. Default value: jce_policy-8.zip

  • source (String)

    The location where the classes can find the software. You can specify a local directory, a Puppet url or an http url. This value is used in multiple places. To make sure in all classed the correct value is used, use the hiera key wls_profile::source to change it to your requested value. The default is : puppet:///modules/software/

  • urandom_fix (Boolean)

    Enable the urandom fix. Default value: true

  • rsa_key_size_fix (Boolean)

    Enable the RSA keysize fix. Default value: true

  • x64 (Boolean)

    Install x64 version of java. Default value: true

  • alternatives_priority (Integer)

    alternatives priority for jdk. Default value is: 18001



47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# File 'manifests/weblogic/java_software.pp', line 47

class wls_profile::weblogic::java_software(
  String  $version,
  String  $full_version,
  String  $cryptography_extension_file,
  String  $source,
  Boolean $urandom_fix,
  Boolean $rsa_key_size_fix,
  Boolean $x64,
  Integer $alternatives_priority,
) inherits wls_profile {
  echo {"Java version ${version}":
    withpath => false
  }

  $remove = [ 'java-1.7.0-openjdk.x86_64', 'java-1.6.0-openjdk.x86_64' ]

  package { $remove:
    ensure  => absent,
  }

  ->jdk7::install7{ "jdk-${version}-linux-x64":
    version                     => $version ,
    full_version                => $full_version,
    alternatives_priority       => $alternatives_priority,
    x64                         => $x64,
    download_dir                => '/var/tmp/install',
    urandom_java_fix            => $urandom_fix,
    rsa_key_size_fix            => $rsa_key_size_fix,
    cryptography_extension_file => $cryptography_extension_file,
    source_path                 => $source,
  }
}