Set up repos when using portal with activation key
When using activation key with portal registration method we need to provide the repositories list to be enabled. Change-Id: I7aea9173822647a4601167bb2f9e77394d0ed602
This commit is contained in:
parent
1d4724b637
commit
1b3e473520
12
README.md
12
README.md
@ -62,12 +62,12 @@ None.
|
||||
About repositories
|
||||
------------------
|
||||
|
||||
If you are using an activation key, the repositories that are associated to
|
||||
the subscription are configured in the Red Hat portal or in your local
|
||||
instance of Satellite. You can't specify rhsm_repos parameter if you are
|
||||
using rhsm_activation_key.
|
||||
Otherwise, if you use rhsm_username and rhsm_password, you can use rhsm_repos
|
||||
to select which parameters are deployed.
|
||||
If you are using an activation key with Satellite, the repositories that are
|
||||
associated to the subscription are configured in your local instance of Satellite.
|
||||
You can't specify rhsm_repos parameter if you are using rhsm_activation_key with
|
||||
Satellite.
|
||||
Otherwise, when using Portal registration method you can use either rhsm_username and
|
||||
rhsm_password or activation key and you can use rhsm_repos to select which repos get deployed.
|
||||
|
||||
|
||||
Example Playbook with Red Hat portal
|
||||
|
@ -6,10 +6,11 @@
|
||||
|
||||
- name: Inform the operators if both rhsm_activation_key and rhsm_repos are given
|
||||
debug:
|
||||
msg: "rhsm_repos and rhsm_activation_key are exclusive options"
|
||||
msg: "rhsm_repos and rhsm_activation_key are exclusive options when using Satellite"
|
||||
when:
|
||||
- rhsm_repos | length > 0
|
||||
- rhsm_activation_key is defined
|
||||
- rhsm_method == 'satellite'
|
||||
|
||||
- name: Configure Red Hat Subscription Manager
|
||||
template:
|
||||
|
@ -34,7 +34,7 @@
|
||||
when:
|
||||
- rhsm_repos | length > 0
|
||||
- rhsm_state == 'present'
|
||||
- rhsm_activation_key is not defined
|
||||
- rhsm_activation_key is not defined or rhsm_method == 'portal'
|
||||
tags:
|
||||
- rhsm
|
||||
- rhsm_repos
|
||||
|
Loading…
Reference in New Issue
Block a user