|
1 | 1 | # Cookbook:: splunk_otel_collector
|
2 | 2 | # Recipe:: collector_win_registry
|
3 | 3 |
|
4 |
| -collector_env_vars = [ |
5 |
| - { name: 'SPLUNK_ACCESS_TOKEN', type: :string, data: node['splunk_otel_collector']['splunk_access_token'].to_s }, |
6 |
| - { name: 'SPLUNK_API_URL', type: :string, data: node['splunk_otel_collector']['splunk_api_url'].to_s }, |
7 |
| - { name: 'SPLUNK_BUNDLE_DIR', type: :string, data: node['splunk_otel_collector']['splunk_bundle_dir'].to_s }, |
8 |
| - { name: 'SPLUNK_COLLECTD_DIR', type: :string, data: node['splunk_otel_collector']['splunk_collectd_dir'].to_s }, |
9 |
| - { name: 'SPLUNK_CONFIG', type: :string, data: node['splunk_otel_collector']['collector_config_dest'].to_s }, |
10 |
| - { name: 'SPLUNK_HEC_TOKEN', type: :string, data: node['splunk_otel_collector']['splunk_hec_token'].to_s }, |
11 |
| - { name: 'SPLUNK_HEC_URL', type: :string, data: node['splunk_otel_collector']['splunk_hec_url'].to_s }, |
12 |
| - { name: 'SPLUNK_INGEST_URL', type: :string, data: node['splunk_otel_collector']['splunk_ingest_url'].to_s }, |
13 |
| - { name: 'SPLUNK_REALM', type: :string, data: node['splunk_otel_collector']['splunk_realm'].to_s }, |
14 |
| - { name: 'SPLUNK_MEMORY_TOTAL_MIB', type: :string, data: node['splunk_otel_collector']['splunk_memory_total_mib'].to_s }, |
15 |
| - { name: 'SPLUNK_TRACE_URL', type: :string, data: node['splunk_otel_collector']['splunk_trace_url'].to_s }, |
16 |
| -] |
17 |
| - |
18 |
| -unless node['splunk_otel_collector']['gomemlimit'].to_s.strip.empty? |
19 |
| - collector_env_vars.push({ name: 'GOMEMLIMIT', type: :string, data: node['splunk_otel_collector']['gomemlimit'].to_s }) |
20 |
| -end |
21 |
| -unless node['splunk_otel_collector']['splunk_listen_interface'].to_s.strip.empty? |
22 |
| - collector_env_vars.push({ name: 'SPLUNK_LISTEN_INTERFACE', type: :string, data: node['splunk_otel_collector']['splunk_listen_interface'].to_s }) |
23 |
| -end |
24 |
| - |
25 |
| -node['splunk_otel_collector']['collector_additional_env_vars'].each do |key, value| |
26 |
| - collector_env_vars.push({ name: key, type: :string, data: value.to_s }) |
27 |
| -end |
| 4 | +collector_env_vars = node['splunk_otel_collector']['collector_win_env_vars'] |
28 | 5 |
|
29 | 6 | collector_env_vars_strings = []
|
30 | 7 | collector_env_vars.each do |item|
|
|
0 commit comments