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