healthcheck: Expose allowed_source_ranges
... which was added to puppet-oslo recently. Depends-on: https://review.opendev.org/905557 Change-Id: Ie589f60a70768bb3e08b1df916215c25be9e59d9
This commit is contained in:
parent
1702276f82
commit
8c6cb4c5e4
|
@ -17,6 +17,11 @@
|
|||
# that information back as part of a request.
|
||||
# Defaults to $facts['os_service_default']
|
||||
#
|
||||
# [*allowed_source_ranges*]
|
||||
# (Optional) A list of network addresses to limit source ip allowed to access
|
||||
# healthcheck information.
|
||||
# Defaults to $facts['os_service_default']
|
||||
#
|
||||
# [*disable_by_file_path*]
|
||||
# (Optional) Check the presense of a file to determine if an application
|
||||
# is running on a port.
|
||||
|
@ -31,6 +36,7 @@ class mistral::healthcheck (
|
|||
$enabled = $facts['os_service_default'],
|
||||
$detailed = $facts['os_service_default'],
|
||||
$backends = $facts['os_service_default'],
|
||||
$allowed_source_ranges = $facts['os_service_default'],
|
||||
$disable_by_file_path = $facts['os_service_default'],
|
||||
$disable_by_file_paths = $facts['os_service_default'],
|
||||
) {
|
||||
|
@ -44,6 +50,7 @@ class mistral::healthcheck (
|
|||
oslo::healthcheck { 'mistral_config':
|
||||
detailed => $detailed,
|
||||
backends => $backends,
|
||||
allowed_source_ranges => $allowed_source_ranges,
|
||||
disable_by_file_path => $disable_by_file_path,
|
||||
disable_by_file_paths => $disable_by_file_paths,
|
||||
}
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
features:
|
||||
- |
|
||||
The new ``mistral::healthcheck::allowed_source_ranges`` parameter has been
|
||||
added.
|
|
@ -15,6 +15,7 @@ describe 'mistral::healthcheck' do
|
|||
is_expected.to contain_oslo__healthcheck('mistral_config').with(
|
||||
:detailed => '<SERVICE DEFAULT>',
|
||||
:backends => '<SERVICE DEFAULT>',
|
||||
:allowed_source_ranges => '<SERVICE DEFAULT>',
|
||||
:disable_by_file_path => '<SERVICE DEFAULT>',
|
||||
:disable_by_file_paths => '<SERVICE DEFAULT>',
|
||||
)
|
||||
|
@ -27,6 +28,7 @@ describe 'mistral::healthcheck' do
|
|||
:enabled => true,
|
||||
:detailed => true,
|
||||
:backends => ['disable_by_file'],
|
||||
:allowed_source_ranges => ['10.0.0.0/24', '10.0.1.0/24'],
|
||||
:disable_by_file_path => '/etc/mistral/healthcheck/disabled',
|
||||
:disable_by_file_paths => ['8989:/etc/mistral/healthcheck/disabled'],
|
||||
}
|
||||
|
@ -38,6 +40,7 @@ describe 'mistral::healthcheck' do
|
|||
is_expected.to contain_oslo__healthcheck('mistral_config').with(
|
||||
:detailed => true,
|
||||
:backends => ['disable_by_file'],
|
||||
:allowed_source_ranges => ['10.0.0.0/24', '10.0.1.0/24'],
|
||||
:disable_by_file_path => '/etc/mistral/healthcheck/disabled',
|
||||
:disable_by_file_paths => ['8989:/etc/mistral/healthcheck/disabled'],
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue