How to get ISPmanager repositories to work through a proxy
You can set up a proxy to resolve the issue when ISPmanager repositories are not accessible. Complete the following steps to add the proxy for repositories on CentOS 7:
- Go to the directory with a list of the connected repositories:
cd /etc/yum.repos.d
- For every repository you will see the .repo file with the following contents: Please note that the file may contain several sections, e.g.:
###[ispsystem-__VERSION__] ###name=ispsystem-__VERSION__ ####baseurl=https://download.ispsystem.com/repo/centos/__VERSION__/$releasever/$basearch ###mirrorlist=https://download.ispsystem.com/repo/centos/__VERSION__/mirrorlist.txt [ispsystem-5.173] name=ispsystem-5.173 failovermethod=priority gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ISPsystem enabled=1 #baseurl=https://download.ispsystem.com/repo/centos/5.173/$releasever/$basearch mirrorlist=https://download.ispsystem.com/repo/centos/5.173/mirrorlist.txt gpgcheck=1
[epel] name=Extra Packages for Enterprise Linux 7 - $basearch #baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch mirrorlist=https://download.ispsystem.com/repo/centos/epel/mirrorlist.txt failovermethod=priority enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 [epel-debuginfo] name=Extra Packages for Enterprise Linux 7 - $basearch - Debug #baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch/debug mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-7&arch=$basearch failovermethod=priority enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 gpgcheck=1 [epel-source] name=Extra Packages for Enterprise Linux 7 - $basearch - Source #baseurl=http://download.fedoraproject.org/pub/epel/7/SRPMS mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-7&arch=$basearch failovermethod=priority enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 gpgcheck=1
- Add a proxy if the .repo file contains the mirrorlist parameter which value starts with the domain "https://download.ispmanager.com". Usually, these are the repositories ispsystem.repo, ispsystem-base.repo and epel.repo. Add a proxy for the repository using this parameter:
proxy=<proxy address>
View details - Add the authentication parameters:
proxy_username=<login> proxy_password=<password>
View details - If the file contains only one section, add the parameter to the end of the file. E.g. the files ispsystem.repo and ispsystem-base.repo contain only one section. If there are several sections, add parameters into a required section. The section can be defined with the enabled parameter, the parameter value – "1".