Hide Forgot
Description of problem: Many customers support their own on premise repos using some repo replication process. This allows the customer greater control of system builds and packages which their on site sys admins will support. Today when subscription-manager runs it will install the appropriate repos; this may not be desirable in all environments (customers that manage their own on premise repos). Therefore as a system admin I would like to be able to set a value in /etc/rhsm/rhsm.conf to disable the installation of "Red Hat Repos". The registered / installed system should only reference my on premise corporate repos.
Implemented in subscription-manager.git master: af2a53b8236907ca1681980796aa711dcf9dc69b Will appear in subscription-manager-0.99.7-1. Note that this has not been cherry-picked to RHEL 5.8 branches. To use add "manage_repos = 0" to the [rhsm] section of /etc/rhsm/rhsm.conf.
Behavior-wise notes for QE etc. Once set, the redhat.repo file will be deleted as soon as rhsmcertd runs again. At no point should it get recreated so long as manage_repos = 0. If you run subscription-manager repos --list you should see a warning that repository management is disabled.
Moving bug to verified. RPM used: [root@dhcp201-166 yum.repos.d]# rpm -qa | grep subscription-manager subscription-manager-gnome-0.99.8-1.el6.x86_64 subscription-manager-0.99.8-1.el6.x86_64 subscription-manager-migration-0.99.8-1.el6.x86_64 subscription-manager-migration-data-1.12-1.el6.noarch subscription-manager-debuginfo-0.99.8-1.el6.x86_64 [root@dhcp201-166 yum.repos.d]# ll total 4 -rw-r--r--. 1 root root 189 Feb 23 11:13 redhat.repo [root@dhcp201-166 yum.repos.d]# service rhsmcertd restart Stopping rhsmcertd [ OK ] Starting rhsmcertd 2 1440 [ OK ] [root@dhcp201-166 yum.repos.d]# ll total 0 [root@dhcp201-166 yum.repos.d]# subscription-manager repos --list Repositories disabled by configuration.
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Cause Subscription manager assumed that users wanted content from the Subscription Service. Consequence Usrs who consumed content from other sources got failtures from yum, and had to disable the repos manually. Change A new configuration option was added which will disable creating repo files. This option, manage_repos = 0, is set in the file /etc/rhsm/rhsm.conf. Result Users can use subscription-manager for subscription management only, and not use the content access features. Note: this is not the same as the feature request was fulfilled.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2012-0804.html