Note that I am about to give you the simpletons version of registering a system. Expect nothing fancy below. In this post I will do my best to keep it brief.
If you need to register newly build RHEL 7 system using Subscription Manger rather than the ‘rhn_register’ command (which is pretty much deprecated) you will need to run the command as shown below. Including the option “–auto-attach“ is pretty much the simplest method to register with RHN, as you do not need to keep track of any of your subscription names.
[root@rhel7 ~]# subscription-manager register –username <username> –password <password> –auto-attach
Once auto-attached you can log into rhn.redhat.com, and use the WebUI to pick and choose any additional subscriptions that you want to attach.
Once you have attached as many subscriptions as your heart desires (or you are licensed for) ,you can then run the following command to see each and every yum repository that you have access to, even if they are disabled.
[root@rhel7 ~]# yum repolist all
Depending on the number of repos that you have access to, so you might want to narrow the list down a bit, as shown below.
[root@rhel7 ~]# yum repolist all | grep -i openstack-6
rhel-7-server-openstack-6.0-debug-rpms/7Server/x86_64 disabled
rhel-7-server-openstack-6.0-installer-debug-rpms/7Server/x86_64 disabled
rhel-7-server-openstack-6.0-installer-rpms/7Server/x86_64 disabled
rhel-7-server-openstack-6.0-installer-source-rpms/7Server/x86_64 disabled
rhel-7-server-openstack-6.0-rpms/7Server/x86_64 disabled
rhel-7-server-openstack-6.0-source-rpms/7Server/x86_64 disabled
Now you can enable the repos that you need with the command below. Note that the enable option accepts wildcards, but also note the discrepancy in the repo names in the command output above, and in the command below. If you are not passing a wildcard option on the enable command, then you will need to modify the repo names before you can run your command with any bit of success.
[root@rhel7 ~]# subscription-manager repos –enable rhel-7-server-openstack-6.0*
Repository ‘rhel-7-server-openstack-6.0-rpms’ is enabled for this system.
Repository ‘rhel-7-server-openstack-6.0-source-rpms’ is enabled for this system.
Repository ‘rhel-7-server-openstack-6.0-debug-rpms’ is enabled for this system.
Repository ‘rhel-7-server-openstack-6.0-installer-debug-rpms’ is enabled for this system.
Repository ‘rhel-7-server-openstack-6.0-installer-source-rpms’ is enabled for this system.
Repository ‘rhel-7-server-openstack-6.0-installer-rpms’ is enabled for this system.