-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Yum module does not use proxy when username is not set #51548
Labels
affects_2.7
This issue/PR affects Ansible v2.7
bug
This issue/PR relates to a bug.
module
This issue/PR relates to a module.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
Comments
Files identified in the description: If these files are inaccurate, please update the |
ansibot
added
affects_2.7
This issue/PR affects Ansible v2.7
bug
This issue/PR relates to a bug.
module
This issue/PR relates to a module.
needs_triage
Needs a first human triage before being processed.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
labels
Jan 31, 2019
ansibot
removed
the
needs_triage
Needs a first human triage before being processed.
label
Jan 31, 2019
maxamillion
added a commit
to maxamillion/ansible
that referenced
this issue
Feb 7, 2019
Fixes ansible#51548 Signed-off-by: Adam Miller <admiller@redhat.com>
ansibot
pushed a commit
that referenced
this issue
Feb 9, 2019
Fixes #51548 Signed-off-by: Adam Miller <admiller@redhat.com>
1kaw
added a commit
to 1kaw/ansible
that referenced
this issue
Feb 10, 2019
ansibot
pushed a commit
that referenced
this issue
Feb 13, 2019
1kaw
pushed a commit
to 1kaw/ansible
that referenced
this issue
Feb 14, 2019
Fixes ansible#51548 Signed-off-by: Adam Miller <admiller@redhat.com> (cherry picked from commit 2721ed2)
1kaw
added a commit
to 1kaw/ansible
that referenced
this issue
Feb 14, 2019
…1548 (ansible#51994) * add test of yum with proxy * Properly handle unauthenticated yum proxy config Fixes ansible#51548 * shell executable is bash (cherry picked from commit c2a409a)
abadger
pushed a commit
that referenced
this issue
Feb 14, 2019
…#52245) * Properly handle unauthenticated yum proxy config (#51915) Fixes #51548 Signed-off-by: Adam Miller <admiller@redhat.com> (cherry picked from commit 2721ed2) * Fix: Yum module does not use proxy when username is not set #51548 (#51994) * add test of yum with proxy * Properly handle unauthenticated yum proxy config Fixes #51548 * shell executable is bash (cherry picked from commit c2a409a)
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
affects_2.7
This issue/PR affects Ansible v2.7
bug
This issue/PR relates to a bug.
module
This issue/PR relates to a module.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
SUMMARY
See also: #18979 (comment)
In installing remote RPM using Yum module,
Yum module uses proxy only when proxy with authentication is set in yum.conf. and proxy is not used when proxy with no authentication is set.
The code causing this bug is shown below:
ansible/lib/ansible/modules/packaging/os/yum.py
Lines 710 to 727 in b967f4d
ISSUE TYPE
COMPONENT NAME
Yum module
ANSIBLE VERSION
CONFIGURATION
N/A
OS / ENVIRONMENT
N/A
STEPS TO REPRODUCE
proxy=http://myproxy:8888
in yum.confEXPECTED RESULTS
yum module downloads the rpm via my proxy.
ACTUAL RESULTS
yum module does NOT use my proxy.
The text was updated successfully, but these errors were encountered: