diff --git a/manifests/healthcheck.pp b/manifests/healthcheck.pp index e51a6ec0d..6c9519a96 100644 --- a/manifests/healthcheck.pp +++ b/manifests/healthcheck.pp @@ -32,6 +32,11 @@ # is running on a port. Expects a "port:path" list of strings. # Defaults to $facts['os_service_default'] # +# [*enable_by_file_paths*] +# (Optional) Check the presence of files. Used by EnableByFilesHealthcheck +# plugin. +# Defaults to $facts['os_service_default'] +# class neutron::healthcheck ( $detailed = $facts['os_service_default'], $backends = $facts['os_service_default'], @@ -39,6 +44,7 @@ class neutron::healthcheck ( $ignore_proxied_requests = $facts['os_service_default'], $disable_by_file_path = $facts['os_service_default'], $disable_by_file_paths = $facts['os_service_default'], + $enable_by_file_paths = $facts['os_service_default'], ) { include neutron::deps @@ -50,5 +56,6 @@ class neutron::healthcheck ( ignore_proxied_requests => $ignore_proxied_requests, disable_by_file_path => $disable_by_file_path, disable_by_file_paths => $disable_by_file_paths, + enable_by_file_paths => $enable_by_file_paths, } } diff --git a/releasenotes/notes/hc-enable_by_file_paths-0412f6bcff5216d1.yaml b/releasenotes/notes/hc-enable_by_file_paths-0412f6bcff5216d1.yaml new file mode 100644 index 000000000..affec90ae --- /dev/null +++ b/releasenotes/notes/hc-enable_by_file_paths-0412f6bcff5216d1.yaml @@ -0,0 +1,5 @@ +--- +features: + - | + The new ``neutron::healthcheck::enable_by_file_paths`` parameter has been + added. diff --git a/spec/classes/neutron_healthcheck_spec.rb b/spec/classes/neutron_healthcheck_spec.rb index 90c45601e..9cb562381 100644 --- a/spec/classes/neutron_healthcheck_spec.rb +++ b/spec/classes/neutron_healthcheck_spec.rb @@ -17,6 +17,7 @@ describe 'neutron::healthcheck' do :ignore_proxied_requests => '', :disable_by_file_path => '', :disable_by_file_paths => '', + :enable_by_file_paths => '', ) end end @@ -30,6 +31,7 @@ describe 'neutron::healthcheck' do :ignore_proxied_requests => false, :disable_by_file_path => '/etc/neutron/healthcheck/disabled', :disable_by_file_paths => ['9696:/etc/neutron/healthcheck/disabled'], + :enable_by_file_paths => ['/etc/neutron/healthcheck/enabled'], } end @@ -41,6 +43,7 @@ describe 'neutron::healthcheck' do :ignore_proxied_requests => false, :disable_by_file_path => '/etc/neutron/healthcheck/disabled', :disable_by_file_paths => ['9696:/etc/neutron/healthcheck/disabled'], + :enable_by_file_paths => ['/etc/neutron/healthcheck/enabled'], ) end end