Skip to content

Commit

Permalink
chef: fix config file for win installs (#4759)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreyc-splunk authored Apr 30, 2024
1 parent 15796c2 commit 01eb403
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions deployments/chef/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## chef-v0.13.0

- Only copy the collector configuration file to `ProgramData` if the source exists.

## chef-v0.12.0

- `splunk_ballast_size_mib` is deprecated and removed. For Splunk Otel Collector version `0.97.0` or greater, `GOMEMLIMIT` env var is introduced. The default is set to 90% of the `SPLUNK_TOTAL_MEM_MIB`. For more information regarding the usage, please follow the instructions ([here](https://github.com/signalfx/splunk-otel-collector?tab=readme-ov-file#from-0961-to-0970)).
Expand Down
2 changes: 1 addition & 1 deletion deployments/chef/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
maintainer_email '[email protected]'
license 'Apache-2.0'
description 'Install/Configure the Splunk OpenTelemetry Collector'
version '0.12.0'
version '0.13.0'
chef_version '>= 16.0'

supports 'amazon'
Expand Down
2 changes: 1 addition & 1 deletion deployments/chef/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

remote_file node['splunk_otel_collector']['collector_config_dest'] do
source "#{node['splunk_otel_collector']['collector_config_source']}"
only_if { node['splunk_otel_collector']['collector_config'] == {} }
only_if { ::File.exist?(node['splunk_otel_collector']['collector_config_source']) && node['splunk_otel_collector']['collector_config'] == {} }
notifies :restart, 'windows_service[splunk-otel-collector]', :delayed
end

Expand Down

0 comments on commit 01eb403

Please sign in to comment.