<p dir="ltr">That was exactly my plans! </p>
<div class="gmail_quote">Le 19 déc. 2012 23:19, "Paul Robert Marino" <<a href="mailto:prmarino1@gmail.com">prmarino1@gmail.com</a>> a écrit :<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Actually quickly looking at it it should be fairly simple Im just<br>
working on an other project right now with a tight deadline so i cant<br>
get to it right now<br>
<br>
this is the module im using<br>
<a href="http://search.cpan.org/~kmacleod/Frontier-RPC-0.07b4/lib/Frontier/Client.pm" target="_blank">http://search.cpan.org/~kmacleod/Frontier-RPC-0.07b4/lib/Frontier/Client.pm</a><br>
The spacewalk_login subroutine would need to be altered along with the<br>
option parsing<br>
if I were to add it I would want to make it source and target specific<br>
 because I use the same subroutine to login to both spacewalk and RHN<br>
I actually have a fairly good idea how to do.<br>
in your case you can simply change<br>
"<br>
my $client = new Frontier::Client(url =><br>
"https://$options->{$direction.'_host'}/rpc/api/", debug => 0);<br>
"<br>
to something like<br>
"<br>
my $client = new Frontier::Client(url =><br>
"https://$options->{$direction.'_host'}/rpc/api/", debug =><br>
0,proxy=>'http://username:password@proxyhost:8080');<br>
"<br>
as a temporary workaround till I have the time to add the feature the<br>
down side is it will use the proxy when connecting to both the source<br>
and destination for the sync.<br>
<br>
<br>
On Wed, Dec 19, 2012 at 2:58 AM, Pierre Casenove <<a href="mailto:pcasenove@gmail.com">pcasenove@gmail.com</a>> wrote:<br>
> Thanks a lot you the answers.<br>
> As the spacewalk server doesn't have access to the internet without the<br>
> authenticated proxy, it's kind of a no go.<br>
> If I have time, I'll try to work on your scruipt to get it proxy compatible.<br>
><br>
> Pierre<br>
><br>
><br>
> 2012/12/19 Paul Robert Marino <<a href="mailto:prmarino1@gmail.com">prmarino1@gmail.com</a>><br>
>><br>
>> On Tue, Dec 18, 2012 at 2:10 AM, Pierre Casenove <<a href="mailto:pcasenove@gmail.com">pcasenove@gmail.com</a>><br>
>> wrote:<br>
>> > Hello,<br>
>> > I'm currently using rhn-clone-errate to sync RHN errata.<br>
>> > But we've recently added centos distribution, so I need to create errata<br>
>> > for<br>
>> > centos as well.<br>
>> > I've been looking at eva-direct-errata, which seems really interesting<br>
>> > but I<br>
>> > don't understand how it works.<br>
>> > - How can I configure a proxy to connect to RHN?<br>
>> Unfortunately I never put that in because I wasn't sure how to do that<br>
>> with the RPC module I'm using but I may add it in the future<br>
>><br>
>> > - I have the following channels configured:<br>
>> > 1 - CentOS 5 Base with Cent0S 5 Updates as child channel<br>
>> > 2 - rhel 5 Server<br>
>> > 3 - RHEL 5 Workstation<br>
>> > 4 - CentOS 6 Base with CentOS 6 Updates as child channel<br>
>> > 5 - RHEL 6 Server with RHEL 6 optionnal as child channel<br>
>> > As I understand the script, I need to launch it 5 times, changing source<br>
>> > channels, dest channels and "rewirtepackagereleasefrom/to". Is it<br>
>> > correct?<br>
>><br>
>> Yes this is due to a bug in the spacewalk API,s<br>
>> <a href="https://bugzilla.redhat.com/show_bug.cgi?id=834569" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=834569</a><br>
>> If the bug ever gets fixed I will release a version that can do it in<br>
>> one round. I've already written a version in my non public git repo<br>
>> but due to the spacewalk bug im not releasing it to the public yet<br>
>><br>
>> > - Is it possible to put some configuration directives (such as<br>
>> > user/password<br>
>> > information) in a config file?<br>
>> No not yet but you can use environment variables they are documented<br>
>> in the pod documentation<br>
>> use perldoc /path/to/script or pod2txt, pod2man. pod2... to read the<br>
>> documentation<br>
>> I highly suggest using the environment variables for now so your<br>
>> passwords don't show up in ps<br>
>><br>
>> ><br>
>> > Thanks a lot for your help,<br>
>> ><br>
>> > Pierre<br>
>> ><br>
>> > _______________________________________________<br>
>> > Spacewalk-list mailing list<br>
>> > <a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
>> > <a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br>
>><br>
>> _______________________________________________<br>
>> Spacewalk-list mailing list<br>
>> <a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
>> <a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Spacewalk-list mailing list<br>
> <a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br>
<br>
_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br>
</blockquote></div>