Hi all,
I am syncing a mirror in a internal network, is there any ways to add my server into mirror list, and make my network access my mirror server?
Fulong Sun
Create a custom kickstart with your internal URL in the default repo files ?
On 07/03/2012 10:26, Sun Fulong wrote:
Hi all,
I am syncing a mirror in a internal network, is there any ways to add my server into mirror list, and make my network access my mirror server?
Fulong Sun _______________________________________________ CentOS-mirror mailing list CentOS-mirror@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror
As I know, fedoraproject have a special system, that I can set which IPs will use my mirror, and eclipse.org will use reverse DNS query to show my mirror as preferred server, how does centos.org do it?
On 2012-03-07 17:34, Pix wrote:
Create a custom kickstart with your internal URL in the default repo files ?
On 07/03/2012 10:26, Sun Fulong wrote:
Hi all,
I am syncing a mirror in a internal network, is there any ways to add my server into mirror list, and make my network access my mirror server?
Fulong Sun _______________________________________________ CentOS-mirror mailing list CentOS-mirror@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror
CentOS-mirror mailing list CentOS-mirror@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror
"SF" == Sun Fulong sfl@neusoft.edu.cn
SF> As I know, fedoraproject have a special system, that I can SF> set which IPs will use my mirror, and eclipse.org will use SF> reverse DNS query to show my mirror as preferred server, SF> how does centos.org do it?
At the moment, if you want to ensure that you use your local mirror, you need to edit the .repo files in /etc/yum.repos.d to change baseurl to point specifically to your repository (and comment out the mirrorlist line). Otherwise, YUM gets a list of random mirrors in your country, which may still be very far away.
Claire
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* Claire M. Connelly cmc@math.hmc.edu System Administrator, Dept. of Mathematics, Harvey Mudd College *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
At the moment, if you want to ensure that you use your local mirror, you need to edit the .repo files in /etc/yum.repos.d to change baseurl to point specifically to your repository (and comment out the mirrorlist line). Otherwise, YUM gets a list of random mirrors in your country, which may still be very far away.
Another option which might be easier depending your local set up and how many machines you have is what I've done :)
On your local caching nameservers:
zone "mirrorlist.centos.org" IN { type master; file "localmirror.zone"; allow-update { none; }; allow-transfer { XXX.XXX.XXX.XXX; }; };
and in localmirror.zone beyond your usual SOA/NS records, put in an A record that points to an http server that you control.
And a simple index.php
<?php
$base = "/var/ftp/pub";
if (isset($_GET["release"]) && isset($_GET["arch"]) && isset($_GET["repo"])) { $partial_path = sprintf("centos/%s/%s/%s", $_GET["release"], $_GET["repo"], $_GET["arch"]);
if (!file_exists(sprintf("%s/%s/repodata", $base, $partial_path))) { echo $_GET["release"] . " is not a valid release or hasnt been released yet\n"; exit; }
echo sprintf("http://mirror.example.com/%s/%5Cn", $partial_path); exit; }
It will also catch machines that you don't have an easy way to modify the repo files on.
Jeff
CentOS is looking to deploy MirrorManager similar to Fedora. That's work in progress.
Thanks, Matt MirrorManager author
-- Matt Domsch Technology Strategist Dell | Office of the CTO
-----Original Message----- From: centos-mirror-bounces@centos.org [mailto:centos-mirror-bounces@centos.org] On Behalf Of Sun Fulong Sent: Wednesday, March 07, 2012 3:40 AM To: Mailing list for CentOS mirrors. Subject: Re: [CentOS-mirror] How can I be a internal mirror?
As I know, fedoraproject have a special system, that I can set which IPs will use my mirror, and eclipse.org will use reverse DNS query to show my mirror as preferred server, how does centos.org do it?
On 2012-03-07 17:34, Pix wrote:
Create a custom kickstart with your internal URL in the default repo files ?
On 07/03/2012 10:26, Sun Fulong wrote:
Hi all,
I am syncing a mirror in a internal network, is there any ways to add my server into mirror list, and make my network access my mirror server?
Fulong Sun _______________________________________________ CentOS-mirror mailing list CentOS-mirror@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror
CentOS-mirror mailing list CentOS-mirror@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror
_______________________________________________ CentOS-mirror mailing list CentOS-mirror@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror
Do we have MirrorManager now?
Fulong Sun
On 2012-03-09 3:23, Matt_Domsch@Dell.com wrote:
CentOS is looking to deploy MirrorManager similar to Fedora. That's work in progress.
Thanks, Matt MirrorManager author
-- Matt Domsch Technology Strategist Dell | Office of the CTO
-----Original Message----- From: centos-mirror-bounces@centos.org [mailto:centos-mirror-bounces@centos.org] On Behalf Of Sun Fulong Sent: Wednesday, March 07, 2012 3:40 AM To: Mailing list for CentOS mirrors. Subject: Re: [CentOS-mirror] How can I be a internal mirror?
As I know, fedoraproject have a special system, that I can set which IPs will use my mirror, and eclipse.org will use reverse DNS query to show my mirror as preferred server, how does centos.org do it?
On 2012-03-07 17:34, Pix wrote:
Create a custom kickstart with your internal URL in the default repo files ?
On 07/03/2012 10:26, Sun Fulong wrote:
Hi all,
I am syncing a mirror in a internal network, is there any ways to add my server into mirror list, and make my network access my mirror server?
Fulong Sun _______________________________________________ CentOS-mirror mailing list CentOS-mirror@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror
CentOS-mirror mailing list CentOS-mirror@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror
CentOS-mirror mailing list CentOS-mirror@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror _______________________________________________ CentOS-mirror mailing list CentOS-mirror@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror
您真逗。。。。没有。
你才逗
2012-07-07
zhangzehao
发件人:Christopher Meng 发送时间:2012-07-07 23:07 主题:Re: [CentOS-mirror] How can I be a internal mirror? 收件人:"Mailing list for CentOS mirrors."centos-mirror@centos.org 抄送:
您真逗。。。。没有。
--
Best Regards, Christopher Meng------'Cicku'
Ambassador/Contributor of Fedora Project and Contributor of GNU. Blog:http://cicku.me Twitter:@cickumqt Hope you can visit and leave some comments. More Contact info see here:http://about.me/cicku _______________________________________________ CentOS-mirror mailing list CentOS-mirror@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror
没有,我不是那种鄙视的意思。我觉得可以先看一下网站再问最好。
我问什么了?
2012-07-07
zhangzehao
发件人:Christopher Meng 发送时间:2012-07-07 23:10 主题:Re: [CentOS-mirror]回复: Re: How can I be a internal mirror? 收件人:"Mailing list for CentOS mirrors."centos-mirror@centos.org 抄送:
没有,我不是那种鄙视的意思。我觉得可以先看一下网站再问最好。
--
Best Regards, Christopher Meng------'Cicku'
Ambassador/Contributor of Fedora Project and Contributor of GNU. Blog:http://cicku.me Twitter:@cickumqt Hope you can visit and leave some comments. More Contact info see here:http://about.me/cicku _______________________________________________ CentOS-mirror mailing list CentOS-mirror@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror
我好像说的不是你啊。。。。
oh,sorry
2012-07-07
zhangzehao
发件人:Sun Fulong 发送时间:2012-07-07 23:13 主题:Re: [CentOS-mirror]回复: Re: How can I be a internal mirror? 收件人:"Mailing list for CentOS mirrors."centos-mirror@centos.org 抄送:
Why don't you read my quoted message first?
On 2012-07-07 23:10, Christopher Meng wrote:
没有,我不是那种鄙视的意思。我觉得可以先看一下网站再问最好。
_______________________________________________ CentOS-mirror mailing list CentOS-mirror@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror
Sorry,我这里不知道为什么少邮件。。。可能是过滤器有问题。。。。咱们私下交流吧。
Stop the argument..I'm sorry.