diff --git a/manifests/logging.pp b/manifests/logging.pp index d0465ff..cda299a 100644 --- a/manifests/logging.pp +++ b/manifests/logging.pp @@ -37,10 +37,6 @@ # (Optional) File where logs should be stored. # Defaults to $facts['os_service_default'] # -# [*watch_log_file*] -# (Optional) Uses logging handler designed to watch file system (boolean value). -# Defaults to $facts['os_service_default'] -# # [*logging_context_format_string*] # (Optional) Format string to use for log messages with context. # Defaults to $facts['os_service_default'] @@ -105,6 +101,12 @@ # 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 magnum::logging( $use_syslog = $facts['os_service_default'], $use_json = $facts['os_service_default'], @@ -113,7 +115,6 @@ class magnum::logging( $log_facility = $facts['os_service_default'], $log_dir = '/var/log/magnum', $log_file = $facts['os_service_default'], - $watch_log_file = $facts['os_service_default'], $debug = $facts['os_service_default'], $logging_context_format_string = $facts['os_service_default'], $logging_default_format_string = $facts['os_service_default'], @@ -126,6 +127,8 @@ class magnum::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 magnum::deps diff --git a/releasenotes/notes/deprecate-watch_log_file-69155cd9dff53e62.yaml b/releasenotes/notes/deprecate-watch_log_file-69155cd9dff53e62.yaml new file mode 100644 index 0000000..634f78b --- /dev/null +++ b/releasenotes/notes/deprecate-watch_log_file-69155cd9dff53e62.yaml @@ -0,0 +1,4 @@ +--- +deprecations: + - | + The ``magnum::logging::watch_log_file`` parameter has been deprecated. diff --git a/spec/classes/magnum_logging_spec.rb b/spec/classes/magnum_logging_spec.rb index 9e5ca57..595361a 100644 --- a/spec/classes/magnum_logging_spec.rb +++ b/spec/classes/magnum_logging_spec.rb @@ -66,7 +66,6 @@ describe 'magnum::logging' do :use_stderr => '', :log_dir => '/var/log/magnum', :log_file => '', - :watch_log_file => '', :debug => '', ) end