Browse Source

Introduce rhsm_release parameter

So we can configure a specific release when subscribing the node.

It has been reported on https://bugzilla.redhat.com/show_bug.cgi?id=1839063
that setting a release was required to get rpms from
rhel-8-for-x86_64-baseos-eus-rpms repository when installing OpenStack
on RHEL8.

Change-Id: I30d93806a7305e101c25507fb87bd02af62b61a5
changes/39/730339/2
Emilien Macchi 1 month ago
parent
commit
5f65ba4a3a
4 changed files with 4 additions and 0 deletions
  1. +1
    -0
      README.md
  2. +1
    -0
      defaults/main.yml
  3. +1
    -0
      tasks/portal.yml
  4. +1
    -0
      tasks/register.yml

+ 1
- 0
README.md View File

@@ -20,6 +20,7 @@ Role Variables
| `rhsm_username` | `[undefined]` | Red Hat Portal username. |
| `rhsm_password` | `[undefined]` | Red Hat Portal password. |
| `rhsm_activation_key` | `[undefined]` | Red Hat Portal Activation Key. |
| `rhsm_release` | `[undefined]` | RHEL release version (e.g. 8.1). |
| `rhsm_org_id` | `[undefined]` | Red Hat Portal Organization Identifier. |
| `rhsm_pool_ids` | `[undefined]` | Red Hat Subscription pool IDs to consume. |
| `rhsm_state` | `present` | Whether to enable or disable a Red Hat subscription. |


+ 1
- 0
defaults/main.yml View File

@@ -2,6 +2,7 @@
# rhsm_username: joe
# rhsm_password: secrete
# rhsm_activation_key: AAA-BBB-CCC-DDD
# rhsm_release: 8.1
# rhsm_ord_id: 1234
# rhsm_autosubscribe: yes # or no (note it's mutually exclusive to rhsm_activation_key)



+ 1
- 0
tasks/portal.yml View File

@@ -8,6 +8,7 @@
username: "{{ rhsm_username | default(omit) }}"
password: "{{ rhsm_password | default(omit) }}"
activationkey: "{{ rhsm_activation_key | default(omit) }}"
release: "{{ rhsm_release | default(omit) }}"
org_id: "{{ rhsm_org_id | default(omit) }}"
pool_ids: "{{ rhsm_pool_ids | default(omit) }}"
state: "{{ rhsm_state | default(omit) }}"


+ 1
- 0
tasks/register.yml View File

@@ -4,6 +4,7 @@
password: "{{ rhsm_password | default(omit) }}"
activationkey: "{{ rhsm_activation_key | default(omit) }}"
org_id: "{{ rhsm_org_id | default(omit) }}"
release: "{{ rhsm_release | default(omit) }}"
pool_ids: "{{ rhsm_pool_ids | default(omit) }}"
state: "{{ rhsm_state | default(omit) }}"
autosubscribe: "{{ rhsm_autosubscribe | default(omit) }}"


Loading…
Cancel
Save