-
Notifications
You must be signed in to change notification settings - Fork 8
Defined type jboss::module
This defined type can add and remove JBoss static modules. Static modules are predefined in
the JBOSS_HOME/modules/
directory of the application server. Each sub-directory represents
one module and contains one or more JAR files and a configuration file - module.xml
.
More info on modules here: https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6/html/Development_Guide/chap-Class_Loading_and_Modules.html
jboss::module { 'postgresql-jdbc':
layer => 'jdbc',
artifacts => [
'https://jdbc.postgresql.org/download/postgresql-9.4-1204.jdbc41.jar',
],
dependencies => [
'javax.transaction.api',
'javax.api',
],
}
After processing of this module JBoss server will be automatically restarted, but only when changes occur.
Parameters for jboss::module
:
This is the namevar. The name of the static module
Required parameter. Name of the layer to assemble in and to activate in layers.conf
file
A set of artifacts to be added to the module. They can be remote urls (http and ftp) or local files. They will be fetched or copied to module location.
A set of JBoss (most likely Java EE) dependencies for a module. The packages listed here will be added to module.xml
making them avialable for code withing a module