Defined Type: wildfly::datasources::driver

Defined in:
manifests/datasources/driver.pp

Overview

Configures a driver

Parameters:

  • driver_name (Any)
  • driver_module_name (Any)
  • driver_class_name (Any) (defaults to: undef)
  • driver_xa_datasource_class_name (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
# File 'manifests/datasources/driver.pp', line 4

define wildfly::datasources::driver(
  $driver_name,
  $driver_module_name,
  $driver_class_name = undef,
  $driver_xa_datasource_class_name = undef,
  $target_profile = undef) {

  $params = {
    'driver-name' => $driver_name,
    'driver-module-name' => $driver_module_name,
    'driver-class-name' => $driver_class_name,
    'driver-xa-datasource-class-name' => $driver_xa_datasource_class_name
  }

  wildfly::resource { "/subsystem=datasources/jdbc-driver=${driver_name}":
    content => $params,
    profile => $target_profile,
  }

}