-------- Original Message --------
Subject: Re: [Spacewalk-list] question about new spacewalk 0.7 setup
From: Michael Mraka <[email protected]>
To: Michiel van Es <[email protected]>
Date: 12/17/2009 02:32 PM

Michiel van Es wrote:
Instead of all diffirent channels I would like to push these diffirent
repo's in 1 channel (because it is the default on all systems/clients)

spacewalk-repo-sync -c centos5 --url 
http://isoredirect.centos.org/centos/5/os/i386/ --type=yum --label base
spacewalk-repo-sync -c centos5 --url 
http://isoredirect.centos.org/centos/5/updates/i386/ --type=yum --label updates
spacewalk-repo-sync -c centos5 --url 
http://isoredirect.centos.org/centos/5/addons/i386/ --type=yum --label addons
spacewalk-repo-sync -c centos5 --url 
http://isoredirect.centos.org/centos/5/extras/i386/ --type=yum --label extras

Hi Michael,

Will this work?

#!/bin/sh
#
# This script updates the spacewalk channels with it repositories
#
# MvE - 0.1
#########################################################################
#
### CentOS 5 - i386
#
spacewalk-repo-sync -c centos5 --url
http://isoredirect.centos.org/centos/5/os/i386/ --type=yum --label base
spacewalk-repo-sync -c centos5 --url
http://isoredirect.centos.org/centos/5/updates/i386/ --type=yum --label
updates
spacewalk-repo-sync -c centos5 --url
http://isoredirect.centos.org/centos/5/addons/i386/ --type=yum --label
addons
spacewalk-repo-sync -c centos5 --url
http://isoredirect.centos.org/centos/5/extras/i386/ --type=yum --label
extras
#
### CentOS 5 - x86_64
#
spacewalk-repo-sync -c centos5_x86_64 --url
http://isoredirect.centos.org/centos/5/os/x86_64/ --type=yum --label base
spacewalk-repo-sync -c centos5_x86_64 --url
http://isoredirect.centos.org/centos/5/updates/x86_64/ --type=yum
--label updates
spacewalk-repo-sync -c centos5_x86_64 --url
http://isoredirect.centos.org/centos/5/addons/x86_64/ --type=yum --label
addons
spacewalk-repo-sync -c centos5_x86_64 --url
http://isoredirect.centos.org/centos/5/extras/x86_64/ --type=yum --label
extras
#
### Epelrepo CentOS 5 - i386
#
spacewalk-repo-sync -c epel_centos5 --url
http://download.fedoraproject.org/pub/epel/5/i386/ --type=yum --label
epel
#
### Epelrepo CentOS 5 - x86_64
#
spacewalk-repo-sync -c epel_centos5_x86_64 --url
http://download.fedoraproject.org/pub/epel/5/x86_64/ --type=yum --label
epel


I don't have a yum epel x86_64 repo file and will it work when the label
name is the same on both i386 and x86_64 repo? (both use another
channel).

This Looks fine, it should work ;).
You have to have channels created first (via webUI or API).
No problem having same repo labels in different channels.
I can also see spacewalk-repo-sync has --mirrorlist option, so you can
use mirror list from your original repo definitions.

Thanks :)
What if I stop the spacewalk-repo-sync operation (because of a slow download server and I want to change the server)
Will things break?

Regards,

Michiel


Regards,

--
Michael Mráka
Satellite Engineering, Red Hat


_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to