Skip to content

Commit

Permalink
ansible: add splunk_otel_collector_no_proxy variable (open-telemetry#…
Browse files Browse the repository at this point in the history
…2482)

* ansible: add splunk_otel_collector_no_proxy variable

Signed-off-by: Maxime de Roucy <maxime.deroucy@fr.clara.net>

* ansible: add splunk_otel_collector_no_proxy variable

Signed-off-by: Maxime de Roucy <maxime.deroucy@fr.clara.net>

Signed-off-by: Maxime de Roucy <maxime.deroucy@fr.clara.net>
  • Loading branch information
tchernomax authored Jan 18, 2023
1 parent 35c4a22 commit 5935731
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions deployments/ansible/roles/collector/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ $> ansible-playbook playbook.yaml -e start_service=false
`http://user:pass@10.0.0.42`. Notice this proxy is not used by ansible
itself during deployment. (**default:** ``)
- `splunk_otel_collector_no_proxy` (Linux only): Set the ip and/or hosts that
will not use `splunk_otel_collector_proxy_http` or
`splunk_otel_collector_proxy_https`. This variable is only used if
`splunk_otel_collector_proxy_http` or `splunk_otel_collector_proxy_https` is
defined. (**default:** `localhost,127.0.0.1,::1`)
- `splunk_memory_total_mib`: Amount of memory in MiB allocated to the Splunk OTel
Collector. (**default:** `512`)
Expand Down
1 change: 1 addition & 0 deletions deployments/ansible/roles/collector/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ splunk_collectd_dir: ""
# Configure otel collector service to use a proxy
splunk_otel_collector_proxy_http: ""
splunk_otel_collector_proxy_https: ""
splunk_otel_collector_no_proxy: "localhost,127.0.0.1,::1"

install_splunk_otel_auto_instrumentation: false
splunk_otel_auto_instrumentation_version: latest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[Service]
Environment="HTTP_PROXY={{ splunk_otel_collector_proxy_http }}"
Environment="HTTPS_PROXY={{ splunk_otel_collector_proxy_https }}"
Environment="NO_PROXY=localhost,127.0.0.1,::1"
Environment="NO_PROXY={{ splunk_otel_collector_no_proxy }}"

0 comments on commit 5935731

Please sign in to comment.