Puppet Class: wls_profile::admin_server::wls_cluster

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

Summary

This class is the default implementation for creating a WebLogic cluster on your system.

Overview

+--+

wls_profile::wls_cluster

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

  • cluster_name (String[1])

    The name to use for the cluster. The change the domain name, use the hiera key: wls_profile::cluster_name. This will make sure the correct domain name gets used in all classes. Default value is: main

  • servers (Hash) (defaults to: $wls_profile::servers)

    A Hash of machine-servers defining all servers that need to be part of the cluster. The default implementations reads these values from the hiera key wls_profile::admin_server::wls_servers::servers

  • cluster_defaults (Hash)

    A Hash of default values used when creating a wls_cluster resource. The default value is: yaml wls_profile::admin_server::wls_cluster::cluster_defaults: messagingmode: unicast migrationbasis: consensus



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'manifests/admin_server/wls_cluster.pp', line 35

class wls_profile::admin_server::wls_cluster(
  String[1] $domain_name,
  String[1] $cluster_name,
  Hash      $cluster_defaults,
  Hash      $servers            = $wls_profile::servers,
) inherits wls_profile {
  $server_array = $servers.keys
  echo {"WebLogic cluster ${cluster_name} with servers ${server_array.join(',')}":
    withpath => false,
  }
  wls_cluster{"${domain_name}/${cluster_name}":
    ensure  => 'present',
    servers => $server_array,
    *       => $cluster_defaults,
  }

}