diff --git a/manifests/logging.pp b/manifests/logging.pp index 67748a11..48cb56b7 100644 --- a/manifests/logging.pp +++ b/manifests/logging.pp @@ -34,6 +34,10 @@ # any directory. # Defaults to '/var/log/aodh'. # +# [*watch_log_file*] +# (Optional) Uses logging handler designed to watch file system (boolean value). +# Defaults to $::os_service_default +# # [*log_file*] # (Optional) File where logs should be stored. # Defaults to $::os_service_default @@ -105,6 +109,7 @@ class aodh::logging( $use_stderr = $::os_service_default, $log_facility = $::os_service_default, $log_dir = '/var/log/aodh', + $watch_log_file = $::os_service_default, $log_file = $::os_service_default, $debug = $::os_service_default, $logging_context_format_string = $::os_service_default, @@ -129,6 +134,7 @@ class aodh::logging( use_journal => $use_journal, use_stderr => $use_stderr, log_dir => $log_dir, + watch_log_file => $watch_log_file, log_file => $log_file, syslog_log_facility => $log_facility, logging_context_format_string => $logging_context_format_string, diff --git a/releasenotes/notes/add_watch_log_file-option-99e6fa54b53c3066.yaml b/releasenotes/notes/add_watch_log_file-option-99e6fa54b53c3066.yaml new file mode 100644 index 00000000..92f356ca --- /dev/null +++ b/releasenotes/notes/add_watch_log_file-option-99e6fa54b53c3066.yaml @@ -0,0 +1,4 @@ +--- +features: + - | + The new ``aodh::logging::watch_log_file`` parameter has been added. diff --git a/spec/classes/aodh_logging_spec.rb b/spec/classes/aodh_logging_spec.rb index ceb511e0..2a5a045c 100644 --- a/spec/classes/aodh_logging_spec.rb +++ b/spec/classes/aodh_logging_spec.rb @@ -30,6 +30,7 @@ describe 'aodh::logging' do :log_facility => 'LOG_FOO', :log_dir => '/var/log', :log_file => '/var/log/aodh/aodh.log', + :watch_log_file => true, :debug => true, } end @@ -66,6 +67,7 @@ describe 'aodh::logging' do :syslog_log_facility => '', :log_dir => '/var/log/aodh', :log_file => '', + :watch_log_file => '', :debug => '', ) end @@ -81,6 +83,7 @@ describe 'aodh::logging' do :syslog_log_facility => 'LOG_FOO', :log_dir => '/var/log', :log_file => '/var/log/aodh/aodh.log', + :watch_log_file => true, :debug => true, ) end