[prev in list] [next in list] [prev in thread] [next in thread] 

List:       spacewalk-devel
Subject:    Re: [Spacewalk-devel] Ubuntu Sync Script
From:       Lamont Peterson <Lamont.Peterson () imail ! org>
Date:       2014-03-03 18:20:10
Message-ID: CF3A150F.149C0%lamont.peterson () imail ! org
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]

[Attachment #4 (text/plain)]

Hi, Martin.

I would suggest splitting out such functionality.  The spacewalk-repo-sync \
functionality would be exactly as it is today, simply add support to use it for \
Channels with .deb Repositories.

The other functionality that you mention might be a new script or some parts of it \
                might make more sense to be covered in the pre-defined channel sets.
--
Lamont Peterson
Sr. Systems Administrator | Unix Systems Operations
Office: 801.442.6497

[cid:image002.jpg@01CEC98D.A33033E0]<http://intermountainhealthcare.org/>

From: Martin Juhl <mj@casalogic.dk<mailto:mj@casalogic.dk>>
Reply-To: "spacewalk-devel@redhat.com<mailto:spacewalk-devel@redhat.com>" \
                <spacewalk-devel@redhat.com<mailto:spacewalk-devel@redhat.com>>
Date: Monday, January 20, 2014 at 1:48 AM
To: "spacewalk-devel@redhat.com<mailto:spacewalk-devel@redhat.com>" \
                <spacewalk-devel@redhat.com<mailto:spacewalk-devel@redhat.com>>
Subject: Re: [Spacewalk-devel] Ubuntu Sync Script

Hi Michael (and all others)

I have close to no experience writing python code.. ( I might learn in the future), \
so I hope that someone else will take the job of rewriting this script...

Besides of that, I'm not sure that all of the functionality of the script can be \
merged into spacewalk-repo-sync.. my script also contains functionality to check \
which distributions and sub-channels are available from Ubuntu..

Is there anything else I can do to help people rewrite/use this script for now???

Regards

Martin



________________________________
Fra: "Michael Mraka" <michael.mraka@redhat.com<mailto:michael.mraka@redhat.com>>
Til: spacewalk-devel@redhat.com<mailto:spacewalk-devel@redhat.com>
Sendt: torsdag, 9. januar 2014 16:00:31
Emne: Re: [Spacewalk-devel] Ubuntu Sync Script


Hello Martin,

% I have created a bash script for syncing Ubuntu Channels to SpaceWalk..
%
% The script has been written to resemble the "satellite-sync" and "mgr-ncc-sync" on \
Red Hat Satellite and SuSE Manager.. %
% The script is definitely NOT perfect, and could do with a rewrite in python/perl.. \
But it works, and thats the main reason I'm releasing it...


Your sync script looks good. If you really think about rewriting it into
python I'd point you to spacewalk-repo-sync command. It is currently
able to download packages only from yum repos but you can extend it with
new repo plugin (see ./backend/satellite_tools/repo_plugins in spacewalk.git).
So you have to write code only for fetching package list and packages
itself and rest of the infrastructure is already there.


Regards,

--
Michael Mráka
Satellite Engineering, Red Hat

_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com<mailto:Spacewalk-devel@redhat.com>
https://www.redhat.com/mailman/listinfo/spacewalk-devel


[Attachment #5 (text/html)]

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: \
after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, \
sans-serif;"> <div>
<div>Hi, Martin.</div>
<div><br>
</div>
<div>I would suggest splitting out such functionality. &nbsp;The spacewalk-repo-sync \
functionality would be exactly as it is today, simply add support to use it for \
Channels with .deb Repositories.</div> <div><br>
</div>
<div>The other functionality that you mention might be a new script or some parts of \
it might make more sense to be covered in the pre-defined channel sets.</div> <div><b \
style="font-size: 15px;"><span style="font-size: 12pt; font-family: Verdana, \
sans-serif; color: rgb(0, 57, 166);">--&nbsp;<br> </span></b><b style="font-size: \
15px;"><span style="font-size: 10pt; font-family: Verdana, sans-serif; color: \
rgb(142, 142, 142);">Lamont Peterson</span></b><b style="font-size: 15px;"><span \
style="font-size: 12pt; font-family: Verdana, sans-serif; color: rgb(0, 57, \
166);"><br> </span></b><span style="font-size: 9pt; font-family: Verdana, sans-serif; \
                color: rgb(142, 142, 142);">Sr. Systems Administrator | Unix Systems \
                Operations<br>
Office: 801.442.6497</span><u style="font-size: 15px;"><span style="font-size: 9pt; \
font-family: Verdana, sans-serif; color: rgb(142, 142, 142);"><br> </span></u><u \
style="font-size: 15px;"><span style="font-size: 4pt; font-family: Verdana, \
sans-serif; color: rgb(142, 142, 142);"><br> </span></u><a \
href="http://intermountainhealthcare.org/" style="color: purple; font-size: \
15px;"><span style="font-size: 6pt; color: rgb(0, 57, 166); text-decoration: \
none;"><img border="0" width="213" height="45" id="Picture_x0020_176" \
src="cid:BFE3B7C2-1D86-46CB-A8BC-7495EE8533E2" \
alt="cid:image002.jpg@01CEC98D.A33033E0" type="image/png"></span></a><br> <span \
style="color: rgb(93, 131, 192); font-size: 15px;"></span></div> </div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; \
BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; \
PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: \
medium none; PADDING-TOP: 3pt"> <span style="font-weight:bold">From: </span>Martin \
Juhl &lt;<a href="mailto:mj@casalogic.dk">mj@casalogic.dk</a>&gt;<br> <span \
style="font-weight:bold">Reply-To: </span>&quot;<a \
href="mailto:spacewalk-devel@redhat.com">spacewalk-devel@redhat.com</a>&quot; &lt;<a \
href="mailto:spacewalk-devel@redhat.com">spacewalk-devel@redhat.com</a>&gt;<br> <span \
style="font-weight:bold">Date: </span>Monday, January 20, 2014 at 1:48 AM<br> <span \
style="font-weight:bold">To: </span>&quot;<a \
href="mailto:spacewalk-devel@redhat.com">spacewalk-devel@redhat.com</a>&quot; &lt;<a \
href="mailto:spacewalk-devel@redhat.com">spacewalk-devel@redhat.com</a>&gt;<br> <span \
style="font-weight:bold">Subject: </span>Re: [Spacewalk-devel] Ubuntu Sync Script<br> \
</div> <div><br>
</div>
<div>
<div>
<div style="font-family: arial,helvetica,sans-serif; font-size: 12pt; color: \
#000000"> <div>Hi Michael (and all others)<br>
</div>
<div><br>
</div>
<div>I have close to no experience writing python code.. ( I might learn in the \
future), so I hope that someone else will take the job of rewriting this \
script...<br> </div>
<div><br>
</div>
<div>Besides of that, I'm not sure that all of the functionality of the script can be \
merged into spacewalk-repo-sync.. my script also contains functionality to check \
which distributions and sub-channels are available from Ubuntu.. <br>
</div>
<div><br>
</div>
<div>Is there anything else I can do to help people rewrite/use this script for \
now???<br> </div>
<div><br>
</div>
<div>Regards<br>
</div>
<div><br>
</div>
<div>Martin<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<hr id="zwchr">
<div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;">
 <b>Fra: </b>&quot;Michael Mraka&quot; &lt;<a \
href="mailto:michael.mraka@redhat.com">michael.mraka@redhat.com</a>&gt;<br> <b>Til: \
</b><a href="mailto:spacewalk-devel@redhat.com">spacewalk-devel@redhat.com</a><br> \
<b>Sendt: </b>torsdag, 9. januar 2014 16:00:31<br> <b>Emne: </b>Re: [Spacewalk-devel] \
Ubuntu Sync Script<br> <div><br>
</div>
<br>
Hello Martin,<br>
<div><br>
</div>
% I have created a bash script for syncing Ubuntu Channels to SpaceWalk.. <br>
% <br>
% The script has been written to resemble the &quot;satellite-sync&quot; and \
&quot;mgr-ncc-sync&quot; on Red Hat Satellite and SuSE Manager.. <br>
% <br>
% The script is definitely NOT perfect, and could do with a rewrite in python/perl.. \
But it works, and thats the main reason I'm releasing it... <br>
<div><br>
</div>
<br>
Your sync script looks good. If you really think about rewriting it into<br>
python I'd point you to spacewalk-repo-sync command. It is currently<br>
able to download packages only from yum repos but you can extend it with<br>
new repo plugin (see ./backend/satellite_tools/repo_plugins in spacewalk.git).<br>
So you have to write code only for fetching package list and packages<br>
itself and rest of the infrastructure is already there.<br>
<div><br>
</div>
<br>
Regards,<br>
<div><br>
</div>
--<br>
Michael Mráka<br>
Satellite Engineering, Red Hat<br>
<div><br>
</div>
_______________________________________________<br>
Spacewalk-devel mailing list<br>
<a href="mailto:Spacewalk-devel@redhat.com">Spacewalk-devel@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-devel">https://www.redhat.com/mailman/listinfo/spacewalk-devel</a></div>
 <div><br>
</div>
</div>
</div>
</div>
</span>
</body>
</html>


["43D9F316-7150-4FD9-97C0-94E6B1732B1F[94].png" (image/png)]

_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel
--===============3880628643464257135==--


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic