Add disable-http-filter option

Change-Id: I28af33e1a8e54bdb9bd9af280e39519ab81d15d5
This commit is contained in:
Christopher Brown 2020-09-10 21:59:21 +01:00
parent b501c08640
commit b3596d187d
2 changed files with 14 additions and 0 deletions

View File

@ -99,6 +99,11 @@
<content type="string" default="20" />
<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
</parameter>
<parameter name="disable_http_filter" unique="0" required="0">
<getopt mixed="--disable-http-filter" />
<content type="boolean" />
<shortdesc lang="en">Set HTTP Filter header to false</shortdesc>
</parameter>
<parameter name="shell_timeout" unique="0" required="0">
<getopt mixed="--shell-timeout=[seconds]" />
<content type="string" default="3" />

View File

@ -88,6 +88,9 @@
# [*pcmk_host_list*]
# List of Pacemaker hosts.
#
# [*disable_http_filter*]
# (optional) Set HTTP Filter header to false
#
# [*meta_attr*]
# (optional) String of meta attributes
# Defaults to undef
@ -159,6 +162,8 @@ define pacemaker::stonith::fence_rhevm (
$tries = undef,
$try_sleep = undef,
$disable_http_filter = undef,
$deep_compare = false,
$update_settle_secs = 600,
) {
@ -242,6 +247,10 @@ define pacemaker::stonith::fence_rhevm (
undef => '',
default => "power_wait=\"${power_wait}\"",
}
$disable_http_filter_chunk = $disable_http_filter ? {
undef => '',
default => "disable_http_filter=\"${disable_http_filter}\"",
}
$delay_chunk = $delay ? {
undef => '',
default => "delay=\"${delay}\"",