Hi All....

    I just found what I was looking for and tested it in my environment and 
works like I wanted it too so I thought I would share it. I found and 
downloaded from GIT "spacewalk-api-scripts-master" which contained the script 
"spacewalk-create-yumrepo". This script creates links from the /var/satellite 
RPM repository to any place you want to put those links. So what I did was in 
the /var/www/html/pub directory I put a repo directory and placed the spacewalk 
client in this directory

/var/www/html/pub/repo/sw-client2.2/

and since the web service has access to this structure I want able to use this 
as my initial  /etc/yum.repo.d/local.repo file to install the client. All I had 
to do once the script was complete run a createrepo on 
/var/www/html/pub/repo/sw-client2.2 and there I had my pseudo yum repository. 
Many thanks to "angrox" on GIT for his scripts!

https://github.com/angrox/spacewalk-api-scripts

----
./spacewalk-create-yumrepo.py -s <spacewalk ip> -u user -p password -c 
sw-channel-to-link -d /var/www/html/pub/repo/sw-client2.2
----

Glen Collins

----- Original Message -----

Thanks for the info all! I don't use the kickstart and probably never will. I'm 
just using SW as a patching server. It would be nice those, DEV's out there is 
there was a way in the API so that it was built in so you could just goto say:

http[s]://<sw server>/api/repo/centos-x86_64/

in a yum based system without the need to create a repo. It would contain the 
necessary repodata directory files and a link to the rpm's. Just use an 
existing known channel. Just a thought I wanted to throw out there. Don't know 
how complicated it would be or even if it can be done. But hey, why not ask.

Thanks again for all your assistance!

Glen Collins

----- Original Message -----
Hi,

>> 1) Is there a way to download the yum updates so I can connect a newly 
>> installed rhel/centos/oracle linux system to spacewalk using the existing 
>> channels?
> 
> If there is, I haven't found it either. :)

I found it in the SuSE-Manager documentation:

http://$c_server/ks/dist/child/channel-label/distribution-label

$c_server is the hostname of your spacewalk server
channel-label is the channel you want to use
distribution-label is the distribution the channel belongs to

I use it with zypper, but it also works with yum. 
You can find it in the kickstart file if you have extra channels enabled in the 
kickstart profile. You will find some lines like:
repo —name=centos-epel-6-x86_64 
--baseurl=http://your-spacewalk-server/ks/dist/child/centos-epel-6-x86_64/CENTOS-6-x86_64


Regards,
Bernhard

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

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

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

Reply via email to