Merge "Remove watch_log_file"
This commit is contained in:
commit
5715c387b4
@ -106,12 +106,6 @@
|
||||
# (Optional) Enables or disables fatal status of deprecations (boolean value).
|
||||
# Defaults to $facts['os_service_default']
|
||||
#
|
||||
# DEPRECATED PARAMETERS
|
||||
#
|
||||
# [*watch_log_file*]
|
||||
# (Optional) Uses logging handler designed to watch file system (boolean value).
|
||||
# Defaults to undef
|
||||
#
|
||||
define oslo::log(
|
||||
$debug = $facts['os_service_default'],
|
||||
$log_config_append = $facts['os_service_default'],
|
||||
@ -133,18 +127,8 @@ define oslo::log(
|
||||
$instance_format = $facts['os_service_default'],
|
||||
$instance_uuid_format = $facts['os_service_default'],
|
||||
$fatal_deprecations = $facts['os_service_default'],
|
||||
# DEPRECATED PARMETERS
|
||||
$watch_log_file = undef,
|
||||
){
|
||||
|
||||
if $watch_log_file != undef {
|
||||
warning("The watch_log_file parameter has been deprecated \
|
||||
and will be removed in a future release.")
|
||||
$watch_log_file_real = $watch_log_file
|
||||
} else {
|
||||
$watch_log_file_real = $facts['os_service_default']
|
||||
}
|
||||
|
||||
$default_log_levels_real = $default_log_levels ? {
|
||||
Hash => join(sort(join_keys_to_values($default_log_levels, '=')), ','),
|
||||
Array => join(sort($default_log_levels), ','),
|
||||
@ -165,7 +149,6 @@ and will be removed in a future release.")
|
||||
'DEFAULT/log_date_format' => { value => $log_date_format },
|
||||
'DEFAULT/log_file' => { value => $log_file },
|
||||
'DEFAULT/log_dir' => { value => $log_dir },
|
||||
'DEFAULT/watch_log_file' => { value => $watch_log_file_real },
|
||||
'DEFAULT/use_syslog' => { value => $use_syslog },
|
||||
'DEFAULT/use_journal' => { value => $use_journal },
|
||||
'DEFAULT/use_json' => { value => $use_json },
|
||||
|
@ -0,0 +1,4 @@
|
||||
---
|
||||
upgrade:
|
||||
- |
|
||||
The ``oslo::log::watch_log_file`` parameter has been removed.
|
@ -13,7 +13,6 @@ describe 'oslo::log' do
|
||||
is_expected.to contain_keystone_config('DEFAULT/log_date_format').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_keystone_config('DEFAULT/log_file').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_keystone_config('DEFAULT/log_dir').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_keystone_config('DEFAULT/watch_log_file').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_keystone_config('DEFAULT/use_syslog').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_keystone_config('DEFAULT/use_journal').with_value('<SERVICE DEFAULT>')
|
||||
is_expected.to contain_keystone_config('DEFAULT/use_json').with_value('<SERVICE DEFAULT>')
|
||||
@ -39,7 +38,6 @@ describe 'oslo::log' do
|
||||
:log_date_format => '%Y-%m-%d %H:%M:%S',
|
||||
:log_file => '/var/log/keystone/keystone.log',
|
||||
:log_dir => '/var/log/keystone',
|
||||
:watch_log_file => true,
|
||||
:use_syslog => true,
|
||||
:use_journal => true,
|
||||
:use_json => true,
|
||||
@ -67,7 +65,6 @@ describe 'oslo::log' do
|
||||
is_expected.to contain_keystone_config('DEFAULT/log_date_format').with_value('%Y-%m-%d %H:%M:%S')
|
||||
is_expected.to contain_keystone_config('DEFAULT/log_file').with_value('/var/log/keystone/keystone.log')
|
||||
is_expected.to contain_keystone_config('DEFAULT/log_dir').with_value('/var/log/keystone')
|
||||
is_expected.to contain_keystone_config('DEFAULT/watch_log_file').with_value(true)
|
||||
is_expected.to contain_keystone_config('DEFAULT/use_syslog').with_value(true)
|
||||
is_expected.to contain_keystone_config('DEFAULT/use_journal').with_value(true)
|
||||
is_expected.to contain_keystone_config('DEFAULT/use_json').with_value(true)
|
||||
|
Loading…
x
Reference in New Issue
Block a user