Discussion:
[Spacewalk-list] How to create local repo on Spacewalk
Jérôme Meyer
2018-09-27 12:23:27 UTC
Permalink
Hi Team,

Here's a newbie question: How can I define a local repository on Spacewalk server for our client's kickstart file? Actually it is redirected to external link.

Our spacewalk have a base-centos7 channel who is linked to the software channel base-centos7. This software channel is connected to some repositories, all from extern links. (External - centos7, etc...).
I need to have a local repository which will be updated and also used for kickstart.
Should I use the same principle as CentOS, namely createrepo, etc... ?
I did some research and unfortunately I didn't find something useful...

Could anyone give me some advice or useful links?

Thanks for your help,

Regards,
Jérôme
Harshal Lakare
2018-09-27 14:17:25 UTC
Permalink
You can simple run script to add your local repo in kickstart file.


Regards,

Harshal Lakare
Jérôme Meyer
2018-09-27 15:26:33 UTC
Permalink
Thanks for your reply.
I don’t have a local repo or how can I find it?

Regards,
JérÎme

From: spacewalk-list-***@redhat.com [mailto:spacewalk-list-***@redhat.com] On Behalf Of Harshal Lakare
Sent: Donnerstag, 27. September 2018 16:17
To: spacewalk-***@redhat.com
Subject: [Spacewalk-list] How to create local repo on Spacewalk

You can simple run script to add your local repo in kickstart file.


Regards,

Harshal Lakare
Bill Howe
2018-11-01 17:06:50 UTC
Permalink
>From what I understand, you are trying to create a custom local repo and
make it available in Spacewalk.
To do that:

- Follow the normal createrepo procedures
- Populate your repo with the packages, sign them with a GPG key
(rpmsign)
- In the Spacewalk portal, go to: Channels > Manage Software Channels >
Manage Software Reposotories
- Click "Create Repository" and define it similar to the following:
- Label: <whatever you want>
- URL: file:///var/repos/custom/el7/x86_64
- Type: yum
- Create a new channel and link it to your newly created repo.
- All clients will need the GPG key imported into rpm (rpm --import
GPGKEYFILE)


Bill Howe
***@gmail.com <http://www.linkedin.com/in/whowe>


On Thu, Sep 27, 2018 at 10:27 AM JérÎme Meyer <***@lcsystems.ch>
wrote:

> Thanks for your reply.
>
> I don’t have a local repo or how can I find it?
>
>
>
> Regards,
>
> JérÎme
>
>
>
> *From:* spacewalk-list-***@redhat.com [mailto:
> spacewalk-list-***@redhat.com] * On Behalf Of *Harshal Lakare
> *Sent:* Donnerstag, 27. September 2018 16:17
> *To:* spacewalk-***@redhat.com
> *Subject:* [Spacewalk-list] How to create local repo on Spacewalk
>
>
>
> You can simple run script to add your local repo in kickstart file.
>
>
>
>
> Regards,
>
>
>
> Harshal Lakare
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-***@redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
Irwin, Jeffrey
2018-11-01 17:33:47 UTC
Permalink
?I did this as well, but was unable to have Rhel 6 and 7 on same server so I built a local yum repo for rhel 6 and pointed spacewalk to that with the same approach and just pointed to url://https://fqdn of server/rhel6/rhel6_repo


________________________________
From: spacewalk-list-***@redhat.com <spacewalk-list-***@redhat.com> on behalf of Bill Howe <***@gmail.com>
Sent: Thursday, November 1, 2018 1:06 PM
To: spacewalk-***@redhat.com
Subject: [EXTERNAL] Re: [Spacewalk-list] How to create local repo on Spacewalk

>From what I understand, you are trying to create a custom local repo and make it available in Spacewalk.
To do that:

* Follow the normal createrepo procedures
* Populate your repo with the packages, sign them with a GPG key (rpmsign)
* In the Spacewalk portal, go to: Channels > Manage Software Channels > Manage Software Reposotories
* Click "Create Repository" and define it similar to the following:
* Label: <whatever you want>
* URL: file:///var/repos/custom/el7/x86_64
* Type: yum
* Create a new channel and link it to your newly created repo.
* All clients will need the GPG key imported into rpm (rpm --import GPGKEYFILE)

Bill Howe
***@gmail.com<mailto:***@gmail.com><http://www.linkedin.com/in/whowe>


On Thu, Sep 27, 2018 at 10:27 AM Jérôme Meyer <***@lcsystems.ch<mailto:***@lcsystems.ch>> wrote:
Thanks for your reply.
I don't have a local repo or how can I find it?

Regards,
Jérôme

From: spacewalk-list-***@redhat.com<mailto:spacewalk-list-***@redhat.com> [mailto:spacewalk-list-***@redhat.com<mailto:spacewalk-list-***@redhat.com>] On Behalf Of Harshal Lakare
Sent: Donnerstag, 27. September 2018 16:17
To: spacewalk-***@redhat.com<mailto:spacewalk-***@redhat.com>
Subject: [Spacewalk-list] How to create local repo on Spacewalk

You can simple run script to add your local repo in kickstart file.


Regards,

Harshal Lakare
Waldirio Manhães Pinheiro
2018-11-01 18:00:00 UTC
Permalink
Humm

Sorry, is not clear to me at all.

Could you share more details about your steps, env, scenario, then will be
better to help you.

Thanks

______________
Best
Waldirio
Skype: waldirio
Site: www.waldirio.com.br
LinkedIn: https://www.linkedin.com/in/waldirio


On Thu, Nov 1, 2018 at 10:58 AM Irwin, Jeffrey <
***@rivertechllc.com> wrote:

> ​I did this as well, but was unable to have Rhel 6 and 7 on same server so
> I built a local yum repo for rhel 6 and pointed spacewalk to that with the
> same approach and just pointed to url://https://fqdn of
> server/rhel6/rhel6_repo
>
>
> ------------------------------
> *From:* spacewalk-list-***@redhat.com <
> spacewalk-list-***@redhat.com> on behalf of Bill Howe <
> ***@gmail.com>
> *Sent:* Thursday, November 1, 2018 1:06 PM
> *To:* spacewalk-***@redhat.com
> *Subject:* [EXTERNAL] Re: [Spacewalk-list] How to create local repo on
> Spacewalk
>
> From what I understand, you are trying to create a custom local repo and
> make it available in Spacewalk.
> To do that:
>
> - Follow the normal createrepo procedures
> - Populate your repo with the packages, sign them with a GPG key
> (rpmsign)
> - In the Spacewalk portal, go to: Channels > Manage Software Channels
> > Manage Software Reposotories
> - Click "Create Repository" and define it similar to the following:
> - Label: <whatever you want>
> - URL: file:///var/repos/custom/el7/x86_64
> - Type: yum
> - Create a new channel and link it to your newly created repo.
> - All clients will need the GPG key imported into rpm (rpm --import
> GPGKEYFILE)
>
>
> Bill Howe
> ***@gmail.com <http://www.linkedin.com/in/whowe>
>
>
> On Thu, Sep 27, 2018 at 10:27 AM JérÎme Meyer <***@lcsystems.ch>
> wrote:
>
>> Thanks for your reply.
>>
>> I don’t have a local repo or how can I find it?
>>
>>
>>
>> Regards,
>>
>> JérÎme
>>
>>
>>
>> *From:* spacewalk-list-***@redhat.com [mailto:
>> spacewalk-list-***@redhat.com] *On Behalf Of *Harshal Lakare
>> *Sent:* Donnerstag, 27. September 2018 16:17
>> *To:* spacewalk-***@redhat.com
>> *Subject:* [Spacewalk-list] How to create local repo on Spacewalk
>>
>>
>>
>> You can simple run script to add your local repo in kickstart file.
>>
>>
>>
>>
>> Regards,
>>
>>
>>
>> Harshal Lakare
>> _______________________________________________
>> Spacewalk-list mailing list
>> Spacewalk-***@redhat.com
>> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-***@redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
Waldirio Manhães Pinheiro
2018-11-01 17:44:38 UTC
Permalink
Hello Folks,

Yea, Bill workflow is perfect.

JérÎme, about material you can find information on the maillist archives or
just here [1]
______________
Best
Waldirio
Skype: waldirio
Site: www.waldirio.com.br
LinkedIn: https://www.linkedin.com/in/waldirio

[1].
https://www.amazon.com/Spacewalk-Satellite-Project-solution-management-ebook/dp/B071DDQ4W2

On Thu, Nov 1, 2018 at 10:30 AM Bill Howe <***@gmail.com> wrote:

> From what I understand, you are trying to create a custom local repo and
> make it available in Spacewalk.
> To do that:
>
> - Follow the normal createrepo procedures
> - Populate your repo with the packages, sign them with a GPG key
> (rpmsign)
> - In the Spacewalk portal, go to: Channels > Manage Software Channels
> > Manage Software Reposotories
> - Click "Create Repository" and define it similar to the following:
> - Label: <whatever you want>
> - URL: file:///var/repos/custom/el7/x86_64
> - Type: yum
> - Create a new channel and link it to your newly created repo.
> - All clients will need the GPG key imported into rpm (rpm --import
> GPGKEYFILE)
>
>
> Bill Howe
> ***@gmail.com <http://www.linkedin.com/in/whowe>
>
>
> On Thu, Sep 27, 2018 at 10:27 AM JérÎme Meyer <***@lcsystems.ch>
> wrote:
>
>> Thanks for your reply.
>>
>> I don’t have a local repo or how can I find it?
>>
>>
>>
>> Regards,
>>
>> JérÎme
>>
>>
>>
>> *From:* spacewalk-list-***@redhat.com [mailto:
>> spacewalk-list-***@redhat.com] * On Behalf Of *Harshal Lakare
>> *Sent:* Donnerstag, 27. September 2018 16:17
>> *To:* spacewalk-***@redhat.com
>> *Subject:* [Spacewalk-list] How to create local repo on Spacewalk
>>
>>
>>
>> You can simple run script to add your local repo in kickstart file.
>>
>>
>>
>>
>> Regards,
>>
>>
>>
>> Harshal Lakare
>> _______________________________________________
>> Spacewalk-list mailing list
>> Spacewalk-***@redhat.com
>> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-***@redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
Jérôme Meyer
2018-11-02 13:22:59 UTC
Permalink
Thanks all for your help


I didn't know whether to go through createrepo or not, that was also the subject of my question. In that meantime, I’ve found and create them.
@Bill, I had followed this procedure, create the channels but forgot to enable the repository [Channels > Manage Software Channels > Manage Software Reposotories] as you said.
Now, it’s running each day in the morning and it seems okay.
Could you please just let me know, what’s the Last Repo Build means? Does this mean that new packages are present and spacewalk has updated them? Or something else?

Best regards, J

[cid:***@01D472B7.8DFC4990][cid:***@01D472B4.BA17F900]






From: spacewalk-list-***@redhat.com [mailto:spacewalk-list-***@redhat.com] On Behalf Of Waldirio Manhães Pinheiro
Sent: Donnerstag, 1. November 2018 19:00
To: spacewalk-***@redhat.com
Subject: Re: [Spacewalk-list] [EXTERNAL] Re: How to create local repo on Spacewalk

Humm

Sorry, is not clear to me at all.

Could you share more details about your steps, env, scenario, then will be better to help you.

Thanks

______________
Best
Waldirio
Skype: waldirio
Site: www.waldirio.com.br<http://www.waldirio.com.br>
LinkedIn: https://www.linkedin.com/in/waldirio


On Thu, Nov 1, 2018 at 10:58 AM Irwin, Jeffrey <***@rivertechllc.com<mailto:***@rivertechllc.com>> wrote:

​I did this as well, but was unable to have Rhel 6 and 7 on same server so I built a local yum repo for rhel 6 and pointed spacewalk to that with the same approach and just pointed to url://https://fqdn of server/rhel6/rhel6_repo



________________________________
From: spacewalk-list-***@redhat.com<mailto:spacewalk-list-***@redhat.com> <spacewalk-list-***@redhat.com<mailto:spacewalk-list-***@redhat.com>> on behalf of Bill Howe <***@gmail.com<mailto:***@gmail.com>>
Sent: Thursday, November 1, 2018 1:06 PM
To: spacewalk-***@redhat.com<mailto:spacewalk-***@redhat.com>
Subject: [EXTERNAL] Re: [Spacewalk-list] How to create local repo on Spacewalk

From what I understand, you are trying to create a custom local repo and make it available in Spacewalk.
To do that:

* Follow the normal createrepo procedures
* Populate your repo with the packages, sign them with a GPG key (rpmsign)
* In the Spacewalk portal, go to: Channels > Manage Software Channels > Manage Software Reposotories

* Click "Create Repository" and define it similar to the following:

* Label: <whatever you want>
* URL: file:///var/repos/custom/el7/x86_64<file:///\\var\repos\custom\el7\x86_64>
* Type: yum

* Create a new channel and link it to your newly created repo.
* All clients will need the GPG key imported into rpm (rpm --import GPGKEYFILE)

Bill Howe
***@gmail.com<mailto:***@gmail.com>


On Thu, Sep 27, 2018 at 10:27 AM JérÎme Meyer <***@lcsystems.ch<mailto:***@lcsystems.ch>> wrote:
Thanks for your reply.
I don’t have a local repo or how can I find it?

Regards,
JérÎme

From: spacewalk-list-***@redhat.com<mailto:spacewalk-list-***@redhat.com> [mailto:spacewalk-list-***@redhat.com<mailto:spacewalk-list-***@redhat.com>] On Behalf Of Harshal Lakare
Sent: Donnerstag, 27. September 2018 16:17
To: spacewalk-***@redhat.com<mailto:spacewalk-***@redhat.com>
Subject: [Spacewalk-list] How to create local repo on Spacewalk

You can simple run script to add your local repo in kickstart file.


Regards,

Harshal Lakare
_______________________________________________
Spacewalk-list mailing list
Spacewalk-***@redhat.com<mailto:Spacewalk-***@redhat.com>
https://www.redhat.com/mailman/listinfo/spacewalk-list
_______________________________________________
Spacewalk-list mailing list
Spacewalk-***@redhat.com<mailto:Spacewalk-***@redhat.com>
https://www.redhat.com/mailman/listinfo/spacewalk-list
Loading...