Project

General

Profile

Bug #1473

EPEL rpm command fails if host is behind a proxy

Added by Matt Mencel over 7 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Kickstart Default template contains this...

# install epel if we can
<%= @epel -%>

Which results in this command during the kickstart install...

# install epel if we can
su -c 'rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm'

Which fails if the host is behind a proxy.

This is created by code in app/models/redhat.rb.

It would be nice if it could detect whether the host had a proxy configured, and if so modify the rpm command like so...

# install epel if we can
su -c 'rpm --httphost PROXY_URL --httpport PROXYPORT -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm'

History

#1 Updated by Ohad Levy almost 7 years ago

  • Status changed from New to Resolved
  • Target version set to 1.0

this is a snippet instead, so you can simply update your snippet accordingly.

Also available in: Atom PDF