File tree Expand file tree Collapse file tree 6 files changed +30
-0
lines changed Expand file tree Collapse file tree 6 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## ansible-v0.32.0
4
+
5
+ ### 💡 Enhancements 💡
6
+
7
+ - Add support for the ` splunk_otel_collector_command_line_args ` option to
8
+ configure the command line arguments for the Splunk OpenTelemetry Collector
9
+ service.
10
+
3
11
## ansible-v0.31.0
4
12
5
13
### 🛑 Breaking changes 🛑
Original file line number Diff line number Diff line change 12
12
splunk_service_user : custom-user
13
13
splunk_service_group : custom-group
14
14
splunk_memory_total_mib : 256
15
+ splunk_otel_collector_command_line_args : " --discovery"
15
16
gomemlimit : 230
16
17
splunk_listen_interface : 1.2.3.4
17
18
splunk_fluentd_config : /etc/otel/collector/fluentd/custom_fluentd.conf
Original file line number Diff line number Diff line change 44
44
state : present
45
45
check_mode : yes
46
46
47
+ - name : Assert OTELCOL_OPTIONS env var is set per splunk_otel_collector_command_line_args
48
+ ansible.builtin.lineinfile :
49
+ line : OTELCOL_OPTIONS=--discovery
50
+ dest : /etc/otel/collector/splunk-otel-collector.conf
51
+ state : present
52
+ check_mode : yes
53
+
47
54
- name : Assert MY_CUSTOM_VAR1 env var is set
48
55
ansible.builtin.lineinfile :
49
56
line : MY_CUSTOM_VAR1=value1
Original file line number Diff line number Diff line change @@ -121,6 +121,16 @@ $> ansible-playbook playbook.yaml -e start_service=false
121
121
` splunk_otel_collector_proxy_http` or `splunk_otel_collector_proxy_https` is
122
122
defined. (**default:** `localhost,127.0.0.1,::1`)
123
123
124
+ - `splunk_otel_collector_command_line_args` : Command-line arguments to pass to the
125
+ Splunk OpenTelemetry Collector. These will be added as arguments to the service
126
+ command line.
127
+ (**default:** `""`)
128
+
129
+ Example :
130
+ ` ` ` yaml
131
+ splunk_otel_collector_command_line_args: "--discovery --set=processors.batch.timeout=10s"
132
+ ` ` `
133
+
124
134
- `splunk_memory_total_mib` : Amount of memory in MiB allocated to the Splunk OTel
125
135
Collector. (**default:** `512`)
126
136
Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ splunk_realm: us0
8
8
9
9
splunk_otel_collector_version : latest
10
10
11
+ # Command-line arguments to pass to the collector service.
12
+ splunk_otel_collector_command_line_args : " "
13
+
11
14
# Set this variable to /etc/otel/collector/gateway_config.yaml on linux,
12
15
# "Program Files\Splunk\OpenTelemetry Collector\gateway_config.yaml" on Windows
13
16
# in order to deploy splunk-otel-collector in gateway mode.
Original file line number Diff line number Diff line change
1
+ OTELCOL_CONFIG={{ splunk_otel_collector_command_line_args }}
1
2
SPLUNK_CONFIG={{ splunk_otel_collector_config }}
2
3
SPLUNK_ACCESS_TOKEN={{ splunk_access_token }}
3
4
SPLUNK_REALM={{ splunk_realm }}
You can’t perform that action at this time.
0 commit comments