Remove watch_log_file

The option was deprecated during the 2024.2 cycle[1]. Processes may
fail to start when it is set to True[2] so supporting it is no longer
useful.

[1] 31603ac6dacd0b47ec9f02d99bfdd0a7b683119c
[2] b977cb9becbeaaa67bb663bd8db5aa6846e495b9

Change-Id: Ifd93d3970974043d64731a3fa70787a40f6a3f40
This commit is contained in:
Takashi Kajinami
2025-04-16 20:59:08 +09:00
parent 80b4b592d0
commit 08ce6b346b
3 changed files with 4 additions and 10 deletions

View File

@ -101,12 +101,6 @@
# Defaults to $facts['os_service_default']
# Example: 'Y-%m-%d %H:%M:%S'
#
# DEPRECATED PARAMETERS
#
# [*watch_log_file*]
# (Optional) Uses logging handler designed to watch file system (boolean value).
# Defaults to undef
#
class placement::logging(
$use_syslog = $facts['os_service_default'],
$use_json = $facts['os_service_default'],
@ -127,7 +121,6 @@ class placement::logging(
$instance_format = $facts['os_service_default'],
$instance_uuid_format = $facts['os_service_default'],
$log_date_format = $facts['os_service_default'],
$watch_log_file = undef,
) {
include placement::deps
@ -139,7 +132,6 @@ class placement::logging(
use_journal => $use_journal,
log_dir => $log_dir,
log_file => $log_file,
watch_log_file => $watch_log_file,
debug => $debug,
logging_context_format_string => $logging_context_format_string,
logging_default_format_string => $logging_default_format_string,

View File

@ -0,0 +1,4 @@
---
upgrade:
- |
The ``placement::logging::watch_log_file`` parameter has been removed.

View File

@ -29,7 +29,6 @@ describe 'placement::logging' do
:syslog_log_facility => 'LOG_FOO',
:log_dir => '/var/log',
:log_file => '/var/tmp/placement_random.log',
:watch_log_file => true,
:debug => true,
}
end
@ -82,7 +81,6 @@ describe 'placement::logging' do
:syslog_log_facility => 'LOG_FOO',
:log_dir => '/var/log',
:log_file => '/var/tmp/placement_random.log',
:watch_log_file => true,
:debug => true,
)}
end