Subscription Manager¶
Red Hat Subscription Manager is a local service which tracks installed products and subscriptions on a local system to help manage subscription assignments. It communicates with the backend subscription service (the Customer Portal or an on-premise server such as Subscription Asset Manager) and works with content management tools such as yum.
This section explains the gdeploy module `RH-subscription’, which can be used to configure subscription manager.
RH-subscription provides the following actions:
- action - This variable allows the following values, register, attach-pool,
- enable-repos, disable-repos, unregister.
Register¶
If the action is register the following variables are supported:
- username/activationkey - Username or activationkey
- password/actiavtionkey - Password or activation key
- auto-attach - true / false, if set to true subscription manager looks for product certificates in /etc/pki/product/
- pool - Name of the pool to be attached
- repos - Repos to subscribe to
- disable-repos - Repo names to disable. Leaving blank will disable all the repos
- ignore_register_errors: If set to no, gdeploy will exit if system registration fails.
Example 1: Register to Red Hat subscription management:
[RH-subscription]
action=register
username=user@user.com
password=<passwd>
pool=<pool>
Unregister¶
If the action is unregister the systems will be unregistered from RHSM.
- Example: Unregister the system::
- [RH-subscription] action=unregister
Enable¶
If the action is enable-repos the following options are supported:
- repos - List of comma separated repos that are to be subscribed to.
- ignore_enable_errors - If set to no, gdeploy fails if enable-repos fail.
Example 2: Enable repositories:
[RH-subscription]
action=enable-repos
repos=rhel-7-server-rpms,rh-gluster-3-for-rhel-7-server-rpms
Disable¶
If the action is disable-repos the following options are supported:
- repos - List of comma separated repos that are to be subscribed to.