Puppet Class: wls_profile::node::copy_domain

Inherits:
wls_profile
Defined in:
manifests/node/copy_domain.pp

Summary

This class is the default implementation to copy the packed domain from the Admin Server, unpack it on the current machine and start the nodemanager.

Overview

+--+

wls_profile::copy_domain

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::node 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

  • 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

  • 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

  • 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

  • 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

  • adminserver_address (String[1])

    The address the admin server process will run and listen on. This value is used in multiple places. To make sure in all classed the correct value is used, use the hiera key wls_profile::adminserver_address to change it to your requested value. The default value is: The fact fqdn

  • adminserver_port (Integer) (defaults to: $wls_profile::adminserver_port)

    The IP port the admin server process will run and listen on. This value is used in multiple places. To make sure in all classed the correct value is used, use the hiera key wls_profile::adminserver_port to change it to your requested value. The default value is: 7001

  • nodemanager_address (String[1])

    The IP address the nodemanager will run and listen on. 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::wls_domain::log_dir to change it to your requested value. Default value: ::fqdn

  • nodemanager_wait (Integer)

    The time in seconds Puppet waits for the nodemanager to start before declaring an error. Default value: 20

  • weblogic_user (String[1])

    The WebLogic user account to bear all administration rights. 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_user to change it to your requested value. Default value: weblogic

  • weblogic_password (String[1])

    The password for the WebLogic account. 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_password to change it to your requested value. Default value: Welcome01



97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
# File 'manifests/node/copy_domain.pp', line 97

class wls_profile::node::copy_domain(
  String[1] $domain_name,
  Stdlib::Absolutepath
            $weblogic_home,
  Stdlib::Absolutepath
            $log_dir,
  Stdlib::Absolutepath
            $middleware_home,
  Stdlib::Absolutepath
            $jdk_home,
  Stdlib::Absolutepath
            $domains_dir,
  String[1] $os_user,
  String[1] $os_group,
  String[1] $adminserver_address,
  String[1] $nodemanager_address,
  Integer   $nodemanager_wait,
  String[1] $weblogic_user,
  String[1] $weblogic_password,
  Wls_install::Versions
            $version               = $wls_profile::weblogic_version,
  Integer   $adminserver_port      = $wls_profile::adminserver_port,
) inherits wls_profile {
  echo {"WebLogic copy domain ${domain_name} from ${adminserver_address}:${domains_dir}/${domain_name}":
    withpath => false,
  }

  wls_install::copydomain{$domain_name:
    domain_name         => $domain_name,
    version             => $version,
    weblogic_home_dir   => $weblogic_home,
    middleware_home_dir => $middleware_home,
    jdk_home_dir        => $jdk_home,
    wls_domains_dir     => $domains_dir,
    os_user             => $os_user,
    os_group            => $os_group,
    download_dir        => '/tmp',
    log_dir             => '/var/log/weblogic',
    use_ssh             => true,
    domain_pack_dir     => "${domains_dir}/${domain_name}",
    adminserver_address => $adminserver_address,
    adminserver_port    => $adminserver_port,
    weblogic_user       => $weblogic_user,
    weblogic_password   => $weblogic_password,
  }
  #
  # Over here you define the nodemanager. Here you can specify the address
  # the nodemanager is running on and the listen address. When you create multiple domains
  # with multiple nodemanagers, you have to specify different addresses and/or ports.
  #
  -> wls_install::nodemanager{"nodemanager for ${domain_name}":
    weblogic_home_dir   => $weblogic_home,
    middleware_home_dir => $middleware_home,
    jdk_home_dir        => $jdk_home,
    download_dir        => '/var/tmp/install',
    domain_name         => $domain_name,
    version             => $version,
    log_dir             => $log_dir,
    nodemanager_address => $nodemanager_address,
    os_user             => $os_user,
    os_group            => $os_group,
    sleep               => $nodemanager_wait,
  }


}