Skip to content
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

ansible: add splunk_otel_collector_no_proxy variable #2482

Merged
merged 2 commits into from
Jan 18, 2023
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
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:[email protected]`. 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 }}"
rmfitzpatrick marked this conversation as resolved.
Show resolved Hide resolved