Defined Type: wildfly::datasources::xa_datasource
- Defined in:
- manifests/datasources/xa_datasource.pp
Overview
Configures a xa_datasource
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'manifests/datasources/xa_datasource.pp', line 7
define wildfly::datasources::xa_datasource (
Optional[Hash] $config = undef,
Optional[String] $target_profile = undef,
) {
$profile_path = wildfly::profile_path($target_profile)
wildfly::resource { "/subsystem=datasources/xa-data-source=${title}":
content => $config,
recursive => true,
profile => $target_profile,
}
-> wildfly::cli { "Enable ${title}":
command => "${profile_path}/subsystem=datasources/xa-data-source=${title}:enable",
unless => "(result == true) of ${profile_path}/subsystem=datasources/xa-data-source=${title}:read-attribute(name=enabled)",
}
}
|