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
|
About repositories
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
If you are using an activation key, the repositories that are associated to
|
If you are using an activation key with Satellite, the repositories that are
|
||||||
the subscription are configured in the Red Hat portal or in your local
|
associated to the subscription are configured in your local instance of Satellite.
|
||||||
instance of Satellite. You can't specify rhsm_repos parameter if you are
|
You can't specify rhsm_repos parameter if you are using rhsm_activation_key with
|
||||||
using rhsm_activation_key.
|
Satellite.
|
||||||
Otherwise, if you use rhsm_username and rhsm_password, you can use rhsm_repos
|
Otherwise, when using Portal registration method you can use either rhsm_username and
|
||||||
to select which parameters are deployed.
|
rhsm_password or activation key and you can use rhsm_repos to select which repos get deployed.
|
||||||
|
|
||||||
|
|
||||||
Example Playbook with Red Hat portal
|
Example Playbook with Red Hat portal
|
||||||
|
@ -6,10 +6,11 @@
|
|||||||
|
|
||||||
- name: Inform the operators if both rhsm_activation_key and rhsm_repos are given
|
- name: Inform the operators if both rhsm_activation_key and rhsm_repos are given
|
||||||
debug:
|
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:
|
when:
|
||||||
- rhsm_repos | length > 0
|
- rhsm_repos | length > 0
|
||||||
- rhsm_activation_key is defined
|
- rhsm_activation_key is defined
|
||||||
|
- rhsm_method == 'satellite'
|
||||||
|
|
||||||
- name: Configure Red Hat Subscription Manager
|
- name: Configure Red Hat Subscription Manager
|
||||||
template:
|
template:
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
when:
|
when:
|
||||||
- rhsm_repos | length > 0
|
- rhsm_repos | length > 0
|
||||||
- rhsm_state == 'present'
|
- rhsm_state == 'present'
|
||||||
- rhsm_activation_key is not defined
|
- rhsm_activation_key is not defined or rhsm_method == 'portal'
|
||||||
tags:
|
tags:
|
||||||
- rhsm
|
- rhsm
|
||||||
- rhsm_repos
|
- rhsm_repos
|
||||||
|
Loading…
x
Reference in New Issue
Block a user