Puppet Class: wls_profile::basic_domain::wls_startup

Inherits:
wls_profile
Defined in:
manifests/basic_domain/wls_startup.pp

Summary

This class is the default implementation for making sure WebLogic gets started after a system reboot.

Overview

+--+

wls_profile::wls_startup

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:

  • domain_name (String[1])

    The name of the WebLogic domain. This will be used both as the REAL WebLogic domain name, and also be used by Puppet as a designator for Puppet resources. (e.g. the name before the slash my_domain/wls_queue1). The change the domain name, use the hiera key: wls_profile::domain_name. This will make sure the correct domain name gets used in all classes. The default value is: MYDOMAIN

  • 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 Default value: 12213

  • weblogic_home (Stdlib::Absolutepath)

    The directory used as WebLogic home This value is used in multiple places. To make sure in all classed the correct value is used, use the hiera key wls_profile::weblogic_home to change it to your requested value. Default value: /opt/oracle/middleware12/wlserver

  • domains_dir (Stdlib::Absolutepath)

    The top-level directory where the domain directories will reside in. This value is used in multiple places. To make sure in all classed the correct value is used, use the hiera key wls_profile::domains_dir to change it to your requested value. The default value is: /opt/oracle/domains

  • log_dir (Stdlib::Absolutepath)

    The directory used for log 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::log_dir to change it to your requested value. Default value: /opt/oracle/domains/log

  • 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



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
# File 'manifests/basic_domain/wls_startup.pp', line 53

class wls_profile::basic_domain::wls_startup(
  String[1] $domain_name,
  Stdlib::Absolutepath
            $weblogic_home,
  Stdlib::Absolutepath
            $domains_dir,
  Stdlib::Absolutepath
            $log_dir,
  String[1] $os_user,
  Wls_install::Versions
            $version          = $wls_profile::weblogic_version,
) inherits wls_profile {
  echo {"WebLogic startup for domain ${domain_name}":
    withpath => false,
  }

  wls_install::support::nodemanagerautostart{"${domain_name}_nodemanager":
    version     => $version,
    wl_home     => $weblogic_home,
    log_dir     => $log_dir,
    user        => $os_user,
    domain      => $domain_name,
    domain_path => "${domains_dir}/${domain_name}",
  }
}