Defined Type: wildfly::modcluster::config

Defined in:
manifests/modcluster/config.pp

Overview

Configures modcluster subsystem

Parameters:

  • advertise_socket (Any) (defaults to: 'modcluster')
  • connector (Any) (defaults to: 'ajp')
  • type (Any) (defaults to: 'busyness')
  • excluded_contexts (Any) (defaults to: undef)
  • balancer (Any) (defaults to: undef)
  • load_balancing_group (Any) (defaults to: undef)
  • proxy_list (Any) (defaults to: undef)
  • proxies (Any) (defaults to: undef)
  • proxy_url (Any) (defaults to: undef)
  • sticky_session (Any) (defaults to: undef)
  • target_profile (Any) (defaults to: undef)


4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'manifests/modcluster/config.pp', line 4

define wildfly::modcluster::config(
  $advertise_socket = 'modcluster',
  $connector = 'ajp',
  $type = 'busyness',
  $excluded_contexts = undef,
  $balancer = undef,
  $load_balancing_group = undef,
  $proxy_list = undef,
  $proxies = undef,
  $proxy_url = undef,
  $sticky_session = undef,
  $target_profile = undef) {

  $config = {
    'advertise-socket' => $advertise_socket,
    'balancer' => $balancer,
    'connector' => $connector,
    'excluded-contexts' => $excluded_contexts,
    'load-balancing-group' => $load_balancing_group,
    'proxy-url' => $proxy_url,
    'proxy-list' => $proxy_list,
    'proxies' => $proxies,
    'sticky-session' => $sticky_session,
  }

  wildfly::resource { '/subsystem=modcluster/mod-cluster-config=configuration':
    content => $config,
    profile => $target_profile,
  }

  -> wildfly::resource { '/subsystem=modcluster/mod-cluster-config=configuration/dynamic-load-provider=configuration':
    content => {},
    profile => $target_profile,
  }

  -> wildfly::resource { "/subsystem=modcluster/mod-cluster-config=configuration/dynamic-load-provider=configuration/load-metric=${type}":
    content => {
      'type' => $type
    },
    profile => $target_profile,
  }

}