Defined Type: wildfly::restart
- Defined in:
- manifests/restart.pp
Overview
Performs a full restart system when a restart is required ‘server-state=restart-required`.
This define is a wrapper for `wildfly_restart` that defaults to your local Wildfly installation.
It is commonly used as a subscriber of a resource that requires restart.
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'manifests/restart.pp', line 14
define wildfly::restart (
Integer $retries = 3,
Integer $wait = 20,
String $username = $wildfly::mgmt_user['username'],
String $password = $wildfly::mgmt_user['password'],
String $host = $wildfly::properties['jboss.bind.address.management'],
String $port = $wildfly::properties['jboss.management.http.port'],
Boolean $secure = $wildfly::secure_mgmt_api,
) {
if $secure {
$_port = $wildfly::properties['jboss.management.https.port']
}
else {
$_port = $port
}
wildfly_restart { $title:
username => $username,
password => $password,
host => $host,
port => $_port,
secure => $secure,
retries => $retries,
wait => $wait,
require => Service['wildfly'],
}
}
|