RH Satellite 6.2.6 - Keeping product subscriptions applied to rebuilt VM guests
Hello,
We have guests that are receiving their RHEL licensing and content through the Virtual Datacenter licensing. It works fine as the guest registers to Satellite. However, we are currently applying a JBoss subscription to the guest manually. When my devOps team decides to rebuild the guest from VM template I have to go back and manually apply the JBoss license again. JBoss is included in the content view applied t the activation key that the guest registers to. But the guest cannot enable the JBoss repo until I manaully apply the subscription in the GUI.
How do I get the JBoss licensing and repos to apply to the guest every time it gets rebuilt in an automated fashion? We're trying to Chef all of our builds, and eventually applying updates through Chef, too. Is there a hammer command to add a subscription to a content host after it has registered, or have I missed a content view config from the beginning somehow?
Thanks in advance for any advice anyone may have,
Andy Torres
Responses
When (re)building guests, you may have to use greater than 1 activation key to achieve desired results. see Subscription-manager for the former Red Hat Network User: Part 9 - A Case Study with activation keys. for examples.
You'd probably want an
- activation key to attach RHEL subscriptions (probably with auto-attach = True)
- activation key to attach JBoss subs (probably with auto-attach = False).
(I suspect that your activation key has auto-attach set to True), and those Jboss subs aren't attaching because they exist on an activation key with RHEL subs (and auto-attach = True)
Regarding this:
Is there a hammer command to add a subscription to a content host
after it has registered, or have I missed a content view config from
the beginning somehow?
The hammer host subscription attach command will do this for you. (But I'd advise taking a look at the activation key approach first, as it would 'just work')
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
