Merge "Add watch_log_file option"

This commit is contained in:
Zuul 2021-09-15 05:45:17 +00:00 committed by Gerrit Code Review
commit 0e8b32a890
3 changed files with 14 additions and 1 deletions

View File

@ -37,6 +37,10 @@
# (Optional) File where logs should be stored.
# Defaults to $::os_service_default
#
# [*watch_log_file*]
# (Optional) Uses logging handler designed to watch file system (boolean value).
# Defaults to $::os_service_default
#
# [*logging_context_format_string*]
# (Optional) Format string to use for log messages with context.
# Defaults to $::os_service_default
@ -105,6 +109,7 @@ class designate::logging(
$log_facility = $::os_service_default,
$log_dir = $::designate::params::log_dir,
$log_file = $::os_service_default,
$watch_log_file = $::os_service_default,
$debug = $::os_service_default,
$logging_context_format_string = $::os_service_default,
$logging_default_format_string = $::os_service_default,
@ -129,6 +134,7 @@ class designate::logging(
use_stderr => $use_stderr,
log_dir => $log_dir,
log_file => $log_file,
watch_log_file => $watch_log_file,
syslog_log_facility => $log_facility,
logging_context_format_string => $logging_context_format_string,
logging_default_format_string => $logging_default_format_string,

View File

@ -0,0 +1,4 @@
---
features:
- |
The new ``designate::logging::watch_log_file`` parameter has been added.

View File

@ -30,6 +30,7 @@ describe 'designate::logging' do
:log_facility => 'LOG_FOO',
:log_dir => '/var/log',
:log_file => '/var/log/designate/designate.log',
:watch_log_file => true,
:debug => true,
}
end
@ -65,7 +66,8 @@ describe 'designate::logging' do
:use_stderr => '<SERVICE DEFAULT>',
:syslog_log_facility => '<SERVICE DEFAULT>',
:log_dir => '/var/log/designate',
:log_file => '<SERVICE DEFAULT>',
:log_file => '<SERVICE DEFAULT>',
:watch_log_file => '<SERVICE DEFAULT>',
:debug => '<SERVICE DEFAULT>',
)
end
@ -81,6 +83,7 @@ describe 'designate::logging' do
:syslog_log_facility => 'LOG_FOO',
:log_dir => '/var/log',
:log_file => '/var/log/designate/designate.log',
:watch_log_file => true,
:debug => true,
)
end