Defined Type: wildfly::jgroups::stack::tcp

Defined in:
manifests/jgroups/stack/tcp.pp

Overview

Configures jgroups TCP-based stacks.

Parameters:

  • properties (Hash)


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
# File 'manifests/jgroups/stack/tcp.pp', line 4

define wildfly::jgroups::stack::tcp(
  Hash $properties,
  ) {

  $stack = downcase($title)

  wildfly::jgroups::stack { $stack:
    protocols => [
      $title,
      'MERGE3',
      { 'FD_SOCK' => { 'socket-binding' => 'jgroups-tcp-fd' } },
      'FD',
      'VERIFY_SUSPECT',
      'pbcast.NAKACK2',
      'UNICAST3',
      'pbcast.STABLE',
      'pbcast.GMS',
      'UFC',
      'MFC',
      'FRAG2',
      'RSVP'
    ],
    transport => {
      'TCP' => {
        'socket-binding' => 'jgroups-tcp',
      }
    }
  }
  -> wildfly::resource { "/subsystem=jgroups/stack=${stack}/protocol=${title}":
    content => $properties
  }
  -> wildfly::resource { '/subsystem=jgroups':
    content =>  {
      'default-stack' => $stack
    }
  }
}