healthcheck: Expose ignore_proxied_requests parameter
Depends-on: https://review.opendev.org/909807 Change-Id: I36065f01f7e945596b5d23cd8078381c0dccedf3
This commit is contained in:
@@ -18,6 +18,10 @@
|
|||||||
# healthcheck information.
|
# healthcheck information.
|
||||||
# Defaults to $facts['os_service_default']
|
# Defaults to $facts['os_service_default']
|
||||||
#
|
#
|
||||||
|
# [*ignore_proxied_requests*]
|
||||||
|
# (Optional) Ignore requests with proxy headers
|
||||||
|
# Defaults to $facts['os_service_default']
|
||||||
|
#
|
||||||
# [*disable_by_file_path*]
|
# [*disable_by_file_path*]
|
||||||
# (Optional) Check the presence of a file to determine if an application
|
# (Optional) Check the presence of a file to determine if an application
|
||||||
# is running on a port.
|
# is running on a port.
|
||||||
@@ -32,6 +36,7 @@ class keystone::healthcheck (
|
|||||||
$detailed = $facts['os_service_default'],
|
$detailed = $facts['os_service_default'],
|
||||||
$backends = $facts['os_service_default'],
|
$backends = $facts['os_service_default'],
|
||||||
$allowed_source_ranges = $facts['os_service_default'],
|
$allowed_source_ranges = $facts['os_service_default'],
|
||||||
|
$ignore_proxied_requests = $facts['os_service_default'],
|
||||||
$disable_by_file_path = $facts['os_service_default'],
|
$disable_by_file_path = $facts['os_service_default'],
|
||||||
$disable_by_file_paths = $facts['os_service_default'],
|
$disable_by_file_paths = $facts['os_service_default'],
|
||||||
) {
|
) {
|
||||||
@@ -42,6 +47,7 @@ class keystone::healthcheck (
|
|||||||
detailed => $detailed,
|
detailed => $detailed,
|
||||||
backends => $backends,
|
backends => $backends,
|
||||||
allowed_source_ranges => $allowed_source_ranges,
|
allowed_source_ranges => $allowed_source_ranges,
|
||||||
|
ignore_proxied_requests => $ignore_proxied_requests,
|
||||||
disable_by_file_path => $disable_by_file_path,
|
disable_by_file_path => $disable_by_file_path,
|
||||||
disable_by_file_paths => $disable_by_file_paths,
|
disable_by_file_paths => $disable_by_file_paths,
|
||||||
}
|
}
|
||||||
|
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
The new ``keystone::healthcheck::ignore_proxied_requests`` parameter has
|
||||||
|
been added.
|
@@ -14,6 +14,7 @@ describe 'keystone::healthcheck' do
|
|||||||
:detailed => '<SERVICE DEFAULT>',
|
:detailed => '<SERVICE DEFAULT>',
|
||||||
:backends => '<SERVICE DEFAULT>',
|
:backends => '<SERVICE DEFAULT>',
|
||||||
:allowed_source_ranges => '<SERVICE DEFAULT>',
|
:allowed_source_ranges => '<SERVICE DEFAULT>',
|
||||||
|
:ignore_proxied_requests => '<SERVICE DEFAULT>',
|
||||||
:disable_by_file_path => '<SERVICE DEFAULT>',
|
:disable_by_file_path => '<SERVICE DEFAULT>',
|
||||||
:disable_by_file_paths => '<SERVICE DEFAULT>',
|
:disable_by_file_paths => '<SERVICE DEFAULT>',
|
||||||
)
|
)
|
||||||
@@ -26,6 +27,7 @@ describe 'keystone::healthcheck' do
|
|||||||
:detailed => true,
|
:detailed => true,
|
||||||
:backends => ['disable_by_file'],
|
:backends => ['disable_by_file'],
|
||||||
:allowed_source_ranges => ['10.0.0.0/24', '10.0.1.0/24'],
|
:allowed_source_ranges => ['10.0.0.0/24', '10.0.1.0/24'],
|
||||||
|
:ignore_proxied_requests => false,
|
||||||
:disable_by_file_path => '/etc/keystone/healthcheck/disabled',
|
:disable_by_file_path => '/etc/keystone/healthcheck/disabled',
|
||||||
:disable_by_file_paths => ['5000:/etc/keystone/healthcheck/disabled'],
|
:disable_by_file_paths => ['5000:/etc/keystone/healthcheck/disabled'],
|
||||||
}
|
}
|
||||||
@@ -36,6 +38,7 @@ describe 'keystone::healthcheck' do
|
|||||||
:detailed => true,
|
:detailed => true,
|
||||||
:backends => ['disable_by_file'],
|
:backends => ['disable_by_file'],
|
||||||
:allowed_source_ranges => ['10.0.0.0/24', '10.0.1.0/24'],
|
:allowed_source_ranges => ['10.0.0.0/24', '10.0.1.0/24'],
|
||||||
|
:ignore_proxied_requests => false,
|
||||||
:disable_by_file_path => '/etc/keystone/healthcheck/disabled',
|
:disable_by_file_path => '/etc/keystone/healthcheck/disabled',
|
||||||
:disable_by_file_paths => ['5000:/etc/keystone/healthcheck/disabled'],
|
:disable_by_file_paths => ['5000:/etc/keystone/healthcheck/disabled'],
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user