-
Notifications
You must be signed in to change notification settings - Fork 461
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
(MODULES-11173) Add per-host overrides for apt::proxy #1007
Conversation
Add support for optional apt::proxy::perhost array to configure bypass (DIRECT) or alternative proxy for specific repository hosts.
Hello @maturnbull, this looks good ! Thank you for your contribution! |
It looks like this change breaks the module when you don't have a proxy set:
|
@lamaral I can't reproduce the problem you're seeing - please can you share more details of the Hiera files and how you're testing? I've tried both with the entire |
I don't have any apt setup done via Hiera. I have a couple different repositories declared like this in classes:
I have no proxy at all configured for them. After downgrading my apt module from version 8.3.0 to version 8.2.0, the issue is gone. |
I've tried to reproduce in a clean container, but I don't get the error you're seeing:
The catalog compiles and applies fine, the error is only because the repo isn't quite right but that's not relevant to the problem you're seeing. What distribution/version are you using? |
I had this with Debian Buster and Puppet 7.13.1. Oddly enough, now that I unpinned the version and redownloaded the module, I cant reproduce it either. |
No problem, glad it's working now. |
Add support for optional apt::proxy::perhost array to configure bypass (DIRECT) or alternative proxy for specific repository hosts.