Add non-actuating Idunn observation mode
This commit is contained in:
parent
aff1034fa8
commit
84eeca60f5
1 changed files with 8 additions and 4 deletions
|
|
@ -1,6 +1,7 @@
|
|||
param(
|
||||
[int] $StaleAfterSeconds = 120,
|
||||
[string] $StateDir = ""
|
||||
[string] $StateDir = "",
|
||||
[switch] $ObserveOnly
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
|
@ -128,11 +129,14 @@ $arguments = @(
|
|||
"--repo-root", $repoRoot,
|
||||
"--store", $storePath,
|
||||
"--rudp-health-bind", "0.0.0.0:17870",
|
||||
"--command-timeout-seconds", "600",
|
||||
"--execute"
|
||||
"--command-timeout-seconds", "600"
|
||||
)
|
||||
|
||||
if (Test-Path -LiteralPath $operatorAlarmCommand) {
|
||||
if (-not $ObserveOnly) {
|
||||
$arguments += "--execute"
|
||||
}
|
||||
|
||||
if (-not $ObserveOnly -and (Test-Path -LiteralPath $operatorAlarmCommand)) {
|
||||
$arguments += @("--operator-alarm-command", $operatorAlarmCommand)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue