Skip to content

Add a new repos or attach a new subscription #10

@SpeedBlack

Description

@SpeedBlack

Hi,

I am having problems with add a new repos or attach a new subscription/pool ID.
I am obliged to refresh the subscription data from system with "subscription-manager refresh" or "subscription-manager register --username XXX --password XXX --force".
This method generates new certificates. After that, I have to modify "redhat-dtmrepo.repo" file with the new certificates.

If add a new repos, I have to retrieve the syntax from another system to add it in "redhat-dtmrepo.repo" file.
For example, I must add these lines :

[rhel-7-xxxx-rpms]
metadata_expire = 86400
sslclientcert = /etc/pki/entitlement/XXXX.pem
baseurl = https://cdn.redhat.com/xxx
proxy = XXXX
ui_repoid_vars = releasever basearch
sslverify = 1
name = Red Hat Enterprise Linux xxx (RHEL 7 Server) (RPMs)
sslclientkey = /etc/pki/entitlement/XXXX-key.pem
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
enabled = 0
sslcacert = /etc/rhsm/ca/redhat-uep.pem
gpgcheck = 1_

Have you any idea to avoid this behavior ?
Thanks !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions