From 20276806c050334286a5379e7468f96ef4c24ec6 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Wed, 16 Apr 2025 20:59:50 +0900 Subject: [PATCH] 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: I4264c0843d59e7e8a68e9894490b98f896072e4a --- manifests/logging.pp | 9 --------- .../notes/remove-watch_log_file-30401b10abdc1769.yaml | 4 ++++ spec/classes/trove_logging_spec.rb | 2 -- 3 files changed, 4 insertions(+), 11 deletions(-) create mode 100644 releasenotes/notes/remove-watch_log_file-30401b10abdc1769.yaml diff --git a/manifests/logging.pp b/manifests/logging.pp index 0b529f8c..1ab7b932 100644 --- a/manifests/logging.pp +++ b/manifests/logging.pp @@ -98,12 +98,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 trove::logging( $use_syslog = $facts['os_service_default'], $use_json = $facts['os_service_default'], @@ -124,8 +118,6 @@ class trove::logging( $instance_format = $facts['os_service_default'], $instance_uuid_format = $facts['os_service_default'], $log_date_format = $facts['os_service_default'], - # DEPRECATED PARAMETERS - $watch_log_file = undef, ) { include trove::deps @@ -138,7 +130,6 @@ class trove::logging( use_journal => $use_journal, 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, diff --git a/releasenotes/notes/remove-watch_log_file-30401b10abdc1769.yaml b/releasenotes/notes/remove-watch_log_file-30401b10abdc1769.yaml new file mode 100644 index 00000000..a96f2322 --- /dev/null +++ b/releasenotes/notes/remove-watch_log_file-30401b10abdc1769.yaml @@ -0,0 +1,4 @@ +--- +upgrade: + - | + The ``trove::logging::watch_log_file`` parameter has been removed. diff --git a/spec/classes/trove_logging_spec.rb b/spec/classes/trove_logging_spec.rb index a88bc3b3..1ec176b9 100644 --- a/spec/classes/trove_logging_spec.rb +++ b/spec/classes/trove_logging_spec.rb @@ -30,7 +30,6 @@ describe 'trove::logging' do :log_facility => 'LOG_FOO', :log_dir => '/var/log', :log_file => '/var/tmp/trove_random.log', - :watch_log_file => true, :debug => true, } end @@ -82,7 +81,6 @@ describe 'trove::logging' do :syslog_log_facility => 'LOG_FOO', :log_dir => '/var/log', :log_file => '/var/tmp/trove_random.log', - :watch_log_file => true, :debug => true, ) end