Skip to content

Defined type jboss::domain::server

Krzysztof Suszyński edited this page Oct 22, 2015 · 1 revision

The jboss::domain::server defined type

This defined type simplifies creation and removal and updating JBoss domain virtual server (server instance) running on a host server (host controller) in domain mode.

include jboss

jboss::domain::servergroup { 'appsrv-group':
  ensure            => 'present',
  profile           => 'full-ha',
  heapsize          => '2048m',
  maxheapsize       => '2048m',
  jvmopts           => '-XX:+UseG1GC -XX:MaxGCPauseMillis=200',
  system_properties => {
    'java.security.egd' => 'file:/dev/urandom',
  }
}

jboss::domain::server { 'appsrv-01':
  ensure => 'present',
  group  => 'appsrv-group',
}

Parameters for jboss::domain::server:

This type uses JBoss module standard metaparameters

name parameter

This is a namevar. Standard Puppet namevar indicates name of this virtual server (instance).

group parameter

This parameter indicates a server group that this virtual server should be member of. If you are setting ensure parameter to running this is required to be set.

ensure parameter

This is standard ensure puppet parameter. It is extended to support also running and stopped values as an addition to standard present and absent.

host parameter

This parameter indicates a server that should be host (controller) to this virtual server (instance). By default, this is taken from current machine JBoss hostname ($jboss::hostname parameter).

autostart parameter

This parameter indicates whether this virtual server (instance), should be automatically started when host (controller) starts. Be default it is set to true.

socket_binding_group parameter

This parameter indicates that this virtual server should use value of it as socket binding group, By default it is set to undef and not being used.

socket_binding_port_offset parameter

This parameter indicates offset on JBoss ports, defined by socket binding group. It will shift ports up or down by amount described. The format is simply n or -n, for example: 120 will shift all ports by 120 up making standard http port being now 8080 + 120 = 8200. By default it is equal to 0.