diff --git a/manifests/logging.pp b/manifests/logging.pp index 0eb6176..bdc07a3 100644 --- a/manifests/logging.pp +++ b/manifests/logging.pp @@ -37,10 +37,6 @@ # (Optional) File where logs should be stored. # Defaults to '/var/log/placement/placement.log' # -# [*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 placement::logging( $use_syslog = $facts['os_service_default'], $use_json = $facts['os_service_default'], @@ -113,7 +115,6 @@ class placement::logging( $syslog_log_facility = $facts['os_service_default'], $log_dir = '/var/log/placement', $log_file = '/var/log/placement/placement.log', - $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,7 @@ 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 diff --git a/releasenotes/notes/deprecate-watch_log_file-33488fd84df9225a.yaml b/releasenotes/notes/deprecate-watch_log_file-33488fd84df9225a.yaml new file mode 100644 index 0000000..4fa13d4 --- /dev/null +++ b/releasenotes/notes/deprecate-watch_log_file-33488fd84df9225a.yaml @@ -0,0 +1,4 @@ +--- +deprecations: + - | + The ``placement::logging::watch_log_file`` parameter has been deprecated. diff --git a/spec/classes/placement_logging_spec.rb b/spec/classes/placement_logging_spec.rb index 930cd9d..9bfe4b3 100644 --- a/spec/classes/placement_logging_spec.rb +++ b/spec/classes/placement_logging_spec.rb @@ -69,7 +69,6 @@ describe 'placement::logging' do :syslog_log_facility => '', :log_dir => '/var/log/placement', :log_file => '/var/log/placement/placement.log', - :watch_log_file => '', :debug => '', )} end