Browse Source

Add disable-http-filter option

Change-Id: I28af33e1a8e54bdb9bd9af280e39519ab81d15d5
changes/02/751102/1
Christopher Brown 2 weeks ago
parent
commit
b3596d187d
2 changed files with 14 additions and 0 deletions
  1. +5
    -0
      agent_generator/src_xml/fence_rhevm.xml
  2. +9
    -0
      manifests/stonith/fence_rhevm.pp

+ 5
- 0
agent_generator/src_xml/fence_rhevm.xml 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" />


+ 9
- 0
manifests/stonith/fence_rhevm.pp 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}\"",


Loading…
Cancel
Save