Puppet Class: wls_profile::weblogic::wls_software

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

Summary

This class is the default implementation for installing the WebLogic software on your system.

Overview

wls_profile::weblogic::wls_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](./weblogic.html) for an explanation on how to do this.

See the file “LICENSE” for the full license governing this code.

Parameters:

  • version (Wls_install::Versions) (defaults to: $wls_profile::weblogic_version)

    The version of WebLogic 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::version` to change it to your requested value. Valid values are:

    - `1036`
    - `1111`
    - `1112`
    - `1211`
    - `1212`
    - `1213`
    - `1221`
    - `12211`
    - `12212`
    - `12213`
    - `12214`
    

    Default value: ‘12213`

  • file_name (String[1])

    The file name containing the Fusion middleware software to install. This file is fetched from the location specified by the property ‘source`.

  • oracle_base (Stdlib::Absolutepath)

    The directory used as the base for all Oracle weblogic files. This value is used in multiple places. To make sure in all classed the correct value is used, use the hiera key ‘wls_profile::oracle_base` to change it to your requested value. Default value: `/opt/oracle`

  • middleware_home (Stdlib::Absolutepath)

    The Oracle middleware home directory. This value is used in multiple places. To make sure in all classed the correct value is used, use the hiera key ‘wls_profile::middleware_home` to change it to your requested value. Default value: `/opt/oracle/middleware12`

  • jdk_home (Stdlib::Absolutepath)

    The location where the JDK is installed. This value is used in multiple places. To make sure in all classed the correct value is used, use the hiera key ‘wls_profile::jdk_home` to change it to your requested value. The default value is: `/usr/java/jdk1.8.0_152`

  • os_user (String[1])

    The os user to use for WebLogic. This value is used in multiple places. To make sure in all classed the correct value is used, use the hiera key ‘wls_profile::basic_domain::os_user` to change it to your requested value. Default value: `oracle`

  • os_group (String[1])

    The os group to use for WebLogic. This value is used in multiple places. To make sure in all classed the correct value is used, use the hiera key ‘wls_profile::basic_domain::os_group` to change it to your requested value. Default value: `dba`

  • source (String[1])

    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/`

  • fmw_infra (Boolean)

    Boolean specifying if you want WebLogic Fusion Middleware Infra installed. Default value: ‘false`



68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# File 'manifests/weblogic/wls_software.pp', line 68

class wls_profile::weblogic::wls_software (
  String[1] $file_name,
  Boolean   $fmw_infra,
  Stdlib::Absolutepath
  $jdk_home,
  Stdlib::Absolutepath
  $middleware_home,
  Stdlib::Absolutepath
  $oracle_base,
  String[1] $os_group,
  String[1] $os_user,
  String[1] $source,
  Wls_install::Versions
  $version  = $wls_profile::weblogic_version
) inherits wls_profile {
  echo { "WebLogic Software ${version} into ${middleware_home} using java in ${jdk_home}.":
    withpath => false,
  }

  class { 'wls_install::software':
    version              => $version,
    filename             => $file_name,
    oracle_base_home_dir => $oracle_base,
    middleware_home_dir  => $middleware_home,
    fmw_infra            => $fmw_infra,
    jdk_home_dir         => $jdk_home,
    os_user              => $os_user,
    os_group             => $os_group,
    download_dir         => $wls_profile::download_dir,
    temp_directory       => $wls_profile::temp_dir,
    source               => $source,
  }
  contain wls_install::software
}