42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# File 'manifests/windows.pp', line 42
define service_autorestart::windows (
Enum['noop', 'reboot', 'restart', 'run_command'] $action = 'restart',
Integer[0] $delay = 1000,
Integer[0] $reset_period = 86400,
Optional[String] $reboot_message = undef,
Optional[String] $command = undef,
) {
service_recovery { $title:
reset_period => $reset_period,
reboot_message => $reboot_message,
command => $command,
failure_actions => [
{
action => $action,
delay => $delay,
},
{
action => $action,
delay => $delay,
},
{
action => $action,
delay => $delay,
},
],
}
}
|