So i have my splunk configuration file input.config on my clients, but I want to make a change and upload to chef to be deployed. What is the best way of checking & handling to ensure the nodes get the file…
template "#{node['splunk']['forwarder']['home']}/etc/system/local/inputs.conf" do source 'inputs.conf.erb' variables :splunk_servers => splunk_servers not_if { File.exists?("#{node['splunk']['forwarder']['home']}/etc/system/local/inputs.conf") } notifies :restart, 'service[SplunkForwarder]' end