dtmateojr / dtmrepo

dtmrepo is a mrepo replacement
Other
12 stars 4 forks source link

sync multiple different versions of RHEL (RHEl6 & RHEL7) #6

Open SpeedBlack opened 7 years ago

SpeedBlack commented 7 years ago

Hi !

I would like to sync multiple different versions of RHEL (RHEL 6 & RHEL7). dtmrepo running in RHEL7. Can you explain how to get a correct product certificates for RHEL6 ?

Am I forced to have a RHEL6 machine subscribed on the RHSM all the time ? And then copy certificates (/etc/pki/entitlement/) Generate RHEL6 certificates for "dtmrepo machine" directly from web interface RHSM, is that possible ?

Can you explain the best method ?

Thanks !

dtmateojr commented 7 years ago

The certs in /etc/pki/entitlement is for your specific server and are unique. What you are after are the generic product certs in /etc/pki/product. Get the pem files from another server and chuck them in there.

vishalspatil commented 7 years ago

Hello dtmateojr,

I have one server using dtmrepo syncing rhel 7 packages, I want to add rhel 6 channels for Enterprise Linux as well as RHEL for SAP [rhel6] , it is possible to use same server for rhel6 or I need to configure dtmrepo on another RHEL 6 server.

I tried the method mentioned by you , but that didn't work for me , may be I am missing some thing. It will be great if I get some steps to configure RHEL 6 on dtmrepo

Thanks in advance. Regards Vishal

dtmateojr commented 7 years ago

Go to another RHEL6 server that is registered with Red Hat then grab all the pem files from /etc/pki/product and then put them (rename as needed) into /etc/pki/product of the dtmrepo server. Delete /etc/yum.repos.d/redhat-dtmrepo.repo and then run "dtmrepo -x".

dtmateojr commented 7 years ago

I have updated the instructions with more detailed steps. Check out tip number 4.

vishalspatil commented 7 years ago

Hi Dmateo, Thanks for detailed info. Will check the same today

Regards Vishal

On 5 Jun 2017 9:47 a.m., "Demosthenes Mateo Jr." notifications@github.com wrote:

I have updated the instructions with more detailed steps. Check out tip #4 https://github.com/dtmateojr/dtmrepo/issues/4.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dtmateojr/dtmrepo/issues/6#issuecomment-306099693, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ3KQUnH04MUZ-JpH3QhgjkxxulYfjG3ks5sA4E9gaJpZM4MPg0S .

vishalspatil commented 7 years ago

Hi Dtmateo,

I was able to sync rhel6 OS, extras, Supplementary packages for SAP related packages.

I get the following messages. Repo rhel-sap-for-rhel-6-server-rpms forced skip_if_unavailable=True due to: /etc/pki/entitlement/2443479725532662068.pem Repo rhel-sap-for-rhel-6-server-rpms forced skip_if_unavailable=True due to: /etc/pki/entitlement/2443479725532662068-key.pem

Not sure , what does this relates to, will try to register and configure the same on rhel6 server.

Regards Vishal

dtmateojr commented 7 years ago

You probably would need to register the dtmrepo server to the SAP channel as well.