Skip to content

chef: fix config file for win installs #4759

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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