10.4. Enabling Auto-Attach
When auto-attach is enabled on an activation key and there are subscriptions associated with the key, the subscription management service selects and attaches the best-matched associated subscriptions based on a set of criteria like currently installed products, architecture, and preferences like service level.
You can enable auto-attach and have no subscriptions associated with the key. This type of key is commonly used to register virtual machines when you do not want the virtual machine to consume a physical subscription, but to inherit a host-based subscription from the hypervisor. For more information, see Configuring Virtual Machine Subscriptions in Red Hat Satellite.
Auto-attach is enabled by default. Disable the option if you want to force attach all subscriptions associated with the activation key.
Procedure
To enable auto-attach, complete the following steps:
- In the Satellite web UI, navigate to Content > Activation Keys.
- Click the activation key name that you want to edit.
- Click the Subscriptions tab.
- Click the edit icon next to Auto-Attach.
- Select or clear the check box to enable or disable auto-attach.
- Click Save.
For CLI Users
To enable auto-attach on the activation key:
# hammer activation-key update --name "My_Activation_Key" \ --organization "My_Organization" --auto-attach true