-
Notifications
You must be signed in to change notification settings - Fork 8
Defined type jboss::domain::server
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
This is a namevar. Standard Puppet namevar indicates name of this virtual server (instance).
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.
This is standard ensure puppet parameter. It is extended to support also running
and stopped
values as an addition to standard present
and absent
.
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).
This parameter indicates whether this virtual server (instance), should be automatically started when host (controller) starts. Be default it is set to true
.
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.
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
.