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

Pass proxy configuration from agent_extra_options to dogapi #630

Merged
merged 1 commit into from
Jun 10, 2020

Conversation

albertvaka
Copy link
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
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