Defined Type: wildfly::datasources::datasource
- Defined in:
- manifests/datasources/datasource.pp
Overview
Configures a datasource
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'manifests/datasources/datasource.pp', line 7
define wildfly::datasources::datasource (
Optional[Hash] $config = undef,
Optional[String] $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)",
}
}
|