<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Arial">Hello!<br>
<br>
AFAIK at least from version 0.6 you do not have to run a seperate
reposync script. You can synchronize your repos through the WebUI by
scheduling a taskomatic task. <br>
<br>
Alexandros<br>
<br>
P.S Maybe you should change you rhnpush password as you've exposed it
to the Internet :-)<br>
<br>
</font><br>
On 17/12/2009 10:52 πμ, Michiel van Es wrote:
<blockquote cite="mid:4B29F14B.40707@info.nl" type="cite">ANYONE? ;)
  <br>
  <br>
Kind regards,
  <br>
  <br>
Michiel
  <br>
  <br>
-------- Original Message --------
  <br>
Subject: [Spacewalk-list] question about new spacewalk 0.7 setup
  <br>
From: Michiel van Es <a class="moz-txt-link-rfc2396E" href="mailto:michiele@info.nl"><michiele@info.nl></a>
  <br>
To: <a class="moz-txt-link-abbreviated" href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a> <a class="moz-txt-link-rfc2396E" href="mailto:spacewalk-list@redhat.com"><spacewalk-list@redhat.com></a>
  <br>
Date: 12/16/2009 01:42 PM
  <br>
  <br>
  <blockquote type="cite">Hi,
    <br>
    <br>
We installed a new spacewalk 0.7 server.
    <br>
We want to move from an old 0.3 upgraded to 0.6 spacewalk server to
this
    <br>
new 0.7 server.
    <br>
    <br>
I want to review my reposync script to pull the yum packages and the
    <br>
rhnpush scripts I use.
    <br>
    <br>
For reposync I use:
    <br>
    <br>
### Updates for Centos 4
    <br>
echo "Starting a reposync for CentOS4_updates at `date`">> 
$REPOSYNCLOG
    <br>
echo "">>  $REPOSYNCLOG
    <br>
reposync -c /etc/yum.repos.d/reposync_repo/CentOS4.repo -n -p
    <br>
$REPODIR/CentOS4 --repoid=CentOS4-updates
    <br>
    <br>
echo "Starting a reposync for CentOS4_centosplus at `date`">> 
$REPOSYNCLOG
    <br>
echo "">>  $REPOSYNCLOG
    <br>
reposync -c /etc/yum.repos.d/reposync_repo/CentOS4.repo -n -p
    <br>
$REPODIR/CentOS4 --repoid=CentOS4-centosplus
    <br>
    <br>
echo "Starting a reposync for CentOS4_base at `date`">> 
$REPOSYNCLOG
    <br>
echo "">>  $REPOSYNCLOG
    <br>
reposync -c /etc/yum.repos.d/reposync_repo/CentOS4.repo -n -p
    <br>
$REPODIR/CentOS4 --repoid=CentOS4-base
    <br>
    <br>
echo "Starting a reposync for CentOS4_centosplus at `date`">> 
$REPOSYNCLOG
    <br>
echo "">>  $REPOSYNCLOG
    <br>
reposync -c /etc/yum.repos.d/reposync_repo/CentOS4.repo -n -p
    <br>
$REPODIR/CentOS4 --repoid=CentOS4-extras
    <br>
    <br>
echo "Starting a reposync for epel CentOS 4 at `date`">> 
$REPOSYNCLOG
    <br>
echo "">>  $REPOSYNCLOG
    <br>
reposync -c /etc/yum.repos.d/reposync_repo/epel4.repo -n -p
    <br>
$REPODIR/EPEL4REPO --repoid=epel4
    <br>
    <br>
########## CentOS 5
    <br>
    <br>
echo "Starting a reposync for CentOS5 base at `date`">> 
$REPOSYNCLOG
    <br>
echo "">>  $REPOSYNCLOG
    <br>
reposync -n -p $REPODIR/CentOS5 --repoid=base
    <br>
    <br>
echo "Starting a reposync for CentOS5 addons at `date`">> 
$REPOSYNCLOG
    <br>
echo "">>  $REPOSYNCLOG
    <br>
reposync -n -p $REPODIR/CentOS5 --repoid=addons
    <br>
    <br>
echo "Starting a reposync for CentOS5 extras at `date`">> 
$REPOSYNCLOG
    <br>
echo "">>  $REPOSYNCLOG
    <br>
reposync -n -p $REPODIR/CentOS5 --repoid=extras
    <br>
    <br>
echo "Starting a reposync for CentOS5 updates at `date`">> 
$REPOSYNCLOG
    <br>
echo "">>  $REPOSYNCLOG
    <br>
reposync -n -p $REPODIR/CentOS5 --repoid=updates
    <br>
#
    <br>
### extra 32 bit repo's
    <br>
#
    <br>
echo "Starting a reposync for RPMForge CentOS 5 at `date`">> 
$REPOSYNCLOG
    <br>
echo "">>  $REPOSYNCLOG
    <br>
reposync -c /etc/yum.repos.d/reposync_repo/rpmforge5.repo -n -p
    <br>
$REPODIR/RPMFORGE5 --repoid=rpmforge5
    <br>
    <br>
echo "Starting the rhnpush now">>  $REPOSYNCLOG
    <br>
/root/scripts/rhnpush.sh
    <br>
    <br>
    <br>
    <br>
For rhnpush I use:
    <br>
    <br>
####################################
    <br>
RHNPUSHLOG="/var/log/rhnpush.log"
    <br>
REPODIR="/repodata/repositories"
    <br>
    <br>
### Updates for Centos 5
    <br>
echo "Starting a reposync for CentOS5_base at `date`">> 
$RHNPUSHLOG
    <br>
echo "">>  $RHNPUSHLOG
    <br>
rhnpush --force --tolerant --username=upadmin --password=upload007
    <br>
--channel=centos5 --server=<a class="moz-txt-link-freetext" href="http://localhost/APP">http://localhost/APP</a>
    <br>
--dir=$REPODIR/CentOS5/base/CentOS/
    <br>
    <br>
echo "Starting a reposync for CentOS5_addons at `date`">> 
$RHNPUSHLOG
    <br>
echo "">>  $RHNPUSHLOG
    <br>
rhnpush --force --tolerant --username=upadmin --password=upload007
    <br>
--channel=centos5 --server=<a class="moz-txt-link-freetext" href="http://localhost/APP">http://localhost/APP</a>
    <br>
--dir=$REPODIR/CentOS5/addons/CentOS/
    <br>
    <br>
echo "Starting a reposync for CentOS5_extras at `date`">> 
$RHNPUSHLOG
    <br>
echo "">>  $RHNPUSHLOG
    <br>
rhnpush --force --tolerant --username=upadmin --password=upload007
    <br>
--channel=centos5 --server=<a class="moz-txt-link-freetext" href="http://localhost/APP">http://localhost/APP</a>
    <br>
--dir=$REPODIR/CentOS5/extras/RPMS/
    <br>
    <br>
echo "Starting a reposync for CentOS5_updates at `date`">> 
$RHNPUSHLOG
    <br>
echo "">>  $RHNPUSHLOG
    <br>
rhnpush --force --tolerant --username=upadmin --password=upload007
    <br>
--channel=centos5 --server=<a class="moz-txt-link-freetext" href="http://localhost/APP">http://localhost/APP</a>
    <br>
--dir=$REPODIR/CentOS5/updates/RPMS/
    <br>
    <br>
echo "Starting a reposync for RPMFORGE5 at `date`">>  $RHNPUSHLOG
    <br>
echo "">>  $RHNPUSHLOG
    <br>
rhnpush --force --tolerant --username=upadmin --password=upload007
    <br>
--channel=rpmforge5 --server=<a class="moz-txt-link-freetext" href="http://localhost/APP">http://localhost/APP</a>
    <br>
--dir=$REPODIR/RPMFORGE5/rpmforge5/RPMS/
    <br>
    <br>
echo "Starting a reposync for RPMFORGE4 at `date`">>  $RHNPUSHLOG
    <br>
echo "">>  $RHNPUSHLOG
    <br>
rhnpush --force --tolerant --username=upadmin --password=upload007
    <br>
--channel=rpmforge4 --server=<a class="moz-txt-link-freetext" href="http://localhost/APP">http://localhost/APP</a>
    <br>
--dir=$REPODIR/RPMFORGE4/rpmforge4/RPMS/
    <br>
    <br>
echo "Starting a reposync for EPEL FOR CENTOS5 at `date`">> 
$RHNPUSHLOG
    <br>
echo "">>  $RHNPUSHLOG
    <br>
rhnpush --force --tolerant --username=upadmin --password=upload007
    <br>
--channel=epelrepo --server=<a class="moz-txt-link-freetext" href="http://localhost/APP">http://localhost/APP</a>
    <br>
--dir=$REPODIR/EPELREPO/epel/
    <br>
    <br>
    <br>
Are these the correct methods to pull the yum repo's and push them
(with
    <br>
force!) in the Spacewalk server?
    <br>
    <br>
I would like to share your thought on my scripts and methods..:)
    <br>
    <br>
Kind regards,
    <br>
    <br>
Michiel
    <br>
    <br>
_______________________________________________
    <br>
Spacewalk-list mailing list
    <br>
<a class="moz-txt-link-abbreviated" href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a>
    <br>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/spacewalk-list">https://www.redhat.com/mailman/listinfo/spacewalk-list</a>
    <br>
  </blockquote>
  <br>
_______________________________________________
  <br>
Spacewalk-list mailing list
  <br>
<a class="moz-txt-link-abbreviated" href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a>
  <br>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/spacewalk-list">https://www.redhat.com/mailman/listinfo/spacewalk-list</a>
  <br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
Soumplis Alexandros
Systems Engineer
National Documentation Center /N.H.R.F.
Information Systems Department
48, Vas. Constantinou Av.
116 35 Athens, Greece
phone: +30 210 7273984  fax: +30 210 7252223
email: <a class="moz-txt-link-abbreviated" href="mailto:soumplis@ekt.gr">soumplis@ekt.gr</a>
<a class="moz-txt-link-freetext" href="http://www.ekt.gr">http://www.ekt.gr</a>


--------------------------------------------------------------------
This email is digitally signed by EKT in order to ensure its
integrity and authenticity. EKT participates in the HARICA Public
Key Infrastructure, the Certification Authority of GRNET. You can
install the HARICA root certificate at <a class="moz-txt-link-freetext" href="http://www.harica.gr/trust.php">http://www.harica.gr/trust.php</a>
---------------------------------------------------------------------</pre>
</body>
</html>