Defined Type: wildfly::datasources::db_property

Defined in:
manifests/datasources/db_property.pp

Overview

Configures connection property in a database

Parameters:

  • database (String)

    datasource database

  • value (Optional[String]) (defaults to: undef)

    datasource db property value

  • target_profile (Optional[String]) (defaults to: undef)

    for domain mode you need to set this parameter



8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'manifests/datasources/db_property.pp', line 8

define wildfly::datasources::db_property (
  String           $database,
  Optional[String] $value          = undef,
  Optional[String] $target_profile = undef,
) {
  $params = {
    'value' => $value,
  }

  wildfly::resource { "/subsystem=datasources/data-source=${database}/connection-properties=${title}":
    content => $params,
    profile => $target_profile,
  }
}