cerner/cerner_splunk

View on GitHub
recipes/_configure_logs.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

# Cookbook Name:: cerner_splunk
# Recipe:: _configure_logs
#
# Configures the system log-local.cfg file

log_local_contents = node['splunk']['logs']

splunk_template 'etc/log-local.cfg' do
  stanzas log_local_contents
  notifies :touch, 'file[splunk-marker]', :immediately
end