[Spacewalk-list] question about new spacewalk 0.7 setup

Michiel van Es michiele at info.nl
Thu Dec 17 08:52:27 UTC 2009


ANYONE? ;)

Kind regards,

Michiel

-------- Original Message --------
Subject: [Spacewalk-list] question about new spacewalk 0.7 setup
From: Michiel van Es <michiele at info.nl>
To: spacewalk-list at redhat.com <spacewalk-list at redhat.com>
Date: 12/16/2009 01:42 PM

> Hi,
>
> We installed a new spacewalk 0.7 server.
> We want to move from an old 0.3 upgraded to 0.6 spacewalk server to this
> new 0.7 server.
>
> I want to review my reposync script to pull the yum packages and the
> rhnpush scripts I use.
>
> For reposync I use:
>
> ### Updates for Centos 4
> echo "Starting a reposync for CentOS4_updates at `date`">>  $REPOSYNCLOG
> echo "">>  $REPOSYNCLOG
> reposync -c /etc/yum.repos.d/reposync_repo/CentOS4.repo -n -p
> $REPODIR/CentOS4 --repoid=CentOS4-updates
>
> echo "Starting a reposync for CentOS4_centosplus at `date`">>  $REPOSYNCLOG
> echo "">>  $REPOSYNCLOG
> reposync -c /etc/yum.repos.d/reposync_repo/CentOS4.repo -n -p
> $REPODIR/CentOS4 --repoid=CentOS4-centosplus
>
> echo "Starting a reposync for CentOS4_base at `date`">>  $REPOSYNCLOG
> echo "">>  $REPOSYNCLOG
> reposync -c /etc/yum.repos.d/reposync_repo/CentOS4.repo -n -p
> $REPODIR/CentOS4 --repoid=CentOS4-base
>
> echo "Starting a reposync for CentOS4_centosplus at `date`">>  $REPOSYNCLOG
> echo "">>  $REPOSYNCLOG
> reposync -c /etc/yum.repos.d/reposync_repo/CentOS4.repo -n -p
> $REPODIR/CentOS4 --repoid=CentOS4-extras
>
> echo "Starting a reposync for epel CentOS 4 at `date`">>  $REPOSYNCLOG
> echo "">>  $REPOSYNCLOG
> reposync -c /etc/yum.repos.d/reposync_repo/epel4.repo -n -p
> $REPODIR/EPEL4REPO --repoid=epel4
>
> ########## CentOS 5
>
> echo "Starting a reposync for CentOS5 base at `date`">>  $REPOSYNCLOG
> echo "">>  $REPOSYNCLOG
> reposync -n -p $REPODIR/CentOS5 --repoid=base
>
> echo "Starting a reposync for CentOS5 addons at `date`">>  $REPOSYNCLOG
> echo "">>  $REPOSYNCLOG
> reposync -n -p $REPODIR/CentOS5 --repoid=addons
>
> echo "Starting a reposync for CentOS5 extras at `date`">>  $REPOSYNCLOG
> echo "">>  $REPOSYNCLOG
> reposync -n -p $REPODIR/CentOS5 --repoid=extras
>
> echo "Starting a reposync for CentOS5 updates at `date`">>  $REPOSYNCLOG
> echo "">>  $REPOSYNCLOG
> reposync -n -p $REPODIR/CentOS5 --repoid=updates
> #
> ### extra 32 bit repo's
> #
> echo "Starting a reposync for RPMForge CentOS 5 at `date`">>  $REPOSYNCLOG
> echo "">>  $REPOSYNCLOG
> reposync -c /etc/yum.repos.d/reposync_repo/rpmforge5.repo -n -p
> $REPODIR/RPMFORGE5 --repoid=rpmforge5
>
> echo "Starting the rhnpush now">>  $REPOSYNCLOG
> /root/scripts/rhnpush.sh
>
>
>
> For rhnpush I use:
>
> ####################################
> RHNPUSHLOG="/var/log/rhnpush.log"
> REPODIR="/repodata/repositories"
>
> ### Updates for Centos 5
> echo "Starting a reposync for CentOS5_base at `date`">>  $RHNPUSHLOG
> echo "">>  $RHNPUSHLOG
> rhnpush --force --tolerant --username=upadmin --password=upload007
> --channel=centos5 --server=http://localhost/APP
> --dir=$REPODIR/CentOS5/base/CentOS/
>
> echo "Starting a reposync for CentOS5_addons at `date`">>  $RHNPUSHLOG
> echo "">>  $RHNPUSHLOG
> rhnpush --force --tolerant --username=upadmin --password=upload007
> --channel=centos5 --server=http://localhost/APP
> --dir=$REPODIR/CentOS5/addons/CentOS/
>
> echo "Starting a reposync for CentOS5_extras at `date`">>  $RHNPUSHLOG
> echo "">>  $RHNPUSHLOG
> rhnpush --force --tolerant --username=upadmin --password=upload007
> --channel=centos5 --server=http://localhost/APP
> --dir=$REPODIR/CentOS5/extras/RPMS/
>
> echo "Starting a reposync for CentOS5_updates at `date`">>  $RHNPUSHLOG
> echo "">>  $RHNPUSHLOG
> rhnpush --force --tolerant --username=upadmin --password=upload007
> --channel=centos5 --server=http://localhost/APP
> --dir=$REPODIR/CentOS5/updates/RPMS/
>
> echo "Starting a reposync for RPMFORGE5 at `date`">>  $RHNPUSHLOG
> echo "">>  $RHNPUSHLOG
> rhnpush --force --tolerant --username=upadmin --password=upload007
> --channel=rpmforge5 --server=http://localhost/APP
> --dir=$REPODIR/RPMFORGE5/rpmforge5/RPMS/
>
> echo "Starting a reposync for RPMFORGE4 at `date`">>  $RHNPUSHLOG
> echo "">>  $RHNPUSHLOG
> rhnpush --force --tolerant --username=upadmin --password=upload007
> --channel=rpmforge4 --server=http://localhost/APP
> --dir=$REPODIR/RPMFORGE4/rpmforge4/RPMS/
>
> echo "Starting a reposync for EPEL FOR CENTOS5 at `date`">>  $RHNPUSHLOG
> echo "">>  $RHNPUSHLOG
> rhnpush --force --tolerant --username=upadmin --password=upload007
> --channel=epelrepo --server=http://localhost/APP
> --dir=$REPODIR/EPELREPO/epel/
>
>
> Are these the correct methods to pull the yum repo's and push them (with
> force!) in the Spacewalk server?
>
> I would like to share your thought on my scripts and methods..:)
>
> Kind regards,
>
> Michiel
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list




More information about the Spacewalk-list mailing list