Puppet Class: wls_profile::admin_server::pack_domain

Inherits:
wls_profile
Defined in:
manifests/admin_server/pack_domain.pp

Summary

This class is the default implementation for packing a domain on the current server.

Overview

wls_profile::admin_server::pack_domain

The packed domain can be used to create other WebLogic nodes in the same domain. When you are creating just a single node WebLogic server, you can skip this class.

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

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

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`

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

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

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



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
79
80
81
82
# File 'manifests/admin_server/pack_domain.pp', line 50

class wls_profile::admin_server::pack_domain (
  String[1] $domain_name,
  Stdlib::Absolutepath
  $domains_dir,
  Stdlib::Absolutepath
  $jdk_home,
  Stdlib::Absolutepath
  $middleware_home,
  String[1] $os_group,
  String[1] $os_user,
  Stdlib::Absolutepath
  $weblogic_home
) inherits wls_profile {
  echo { "WebLogic pack domain ${domain_name}":
    withpath => false,
  }
  #
  # This resource definition pack's the current definition of the domain. This packed domain file
  # can be used by other nodes in the cluster. They fetch it, unpack it and use it to enter the domain.
  # When the node is part of the domain, the packed file loses its value. Any changes in the domain are managed
  # by webLogic.
  #
  wls_install::packdomain { $domain_name:
    domain_name         => $domain_name,
    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        => "${domains_dir}/${domain_name}",
  }
}