Skip to content

Pass proxy configuration from agent_extra_options to dogapi#630

Merged
albertvaka merged 1 commit intomasterfrom
albertvaka/pass-proxy-to-dogapi
Jun 10, 2020
Merged

Pass proxy configuration from agent_extra_options to dogapi#630
albertvaka merged 1 commit intomasterfrom
albertvaka/pass-proxy-to-dogapi

Conversation

@albertvaka
Copy link
Copy Markdown
Contributor

What does this PR do?

In case the Agent is configured to use a proxy, use the same proxy when calling dogapi to send puppet reports.

Motivation

When behind a proxy, users had to configure it twice: once in their puppet manifest for the Agent to use, and another time as environment variables for puppetserver (which ends up calling dogapi). This makes the second step no longer needed.

Additional Notes

This is technically a breaking change, but I can't imagine a scenario where the previous behaviour is wanted.

Describe your test plan

Tested by modifying dogapi to log the value of the proxy and checking the value in agent_extra_options got there.

In case the Agent is configured to use a proxy, use the same proxy when
calling dogapi to send puppet reports.

Tested by modifying dogapi to log the value of the proxy and checking the
value in agent_extra_options got there.
@albertvaka albertvaka requested a review from a team as a code owner June 10, 2020 12:36
@albertvaka albertvaka merged commit 4e0eb7d into master Jun 10, 2020
@albertvaka albertvaka deleted the albertvaka/pass-proxy-to-dogapi branch June 10, 2020 14:36
cegeka-jenkins pushed a commit to cegeka/puppet-datadog_agent that referenced this pull request Feb 5, 2026
)

In case the Agent is configured to use a proxy, use the same proxy when
calling dogapi to send puppet reports.

Tested by modifying dogapi to log the value of the proxy and checking the
value in agent_extra_options got there.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants