From 8797a909ea50f477be6dfa11c14b920fe78938ef Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Tue, 25 Sep 2018 21:42:17 -0400 Subject: [PATCH] Add support for RHSM Pools Support rhsm_pool_ids parameter (it was documented but not used). This parameter helps to specify the subscription pool IDs to consume. A pool ID may be specified as a string - just the pool ID (ex. 0123456789abcdef0123456789abcdef), or as a dict with the pool ID as the key, and a quantity as the value (ex. 0123456789abcdef0123456789abcdef: 2). If the quantity is provided, it is used to consume multiple entitlements from a pool (the pool must support this). Change-Id: I5658fa97e32193045c9da29126e824a884054e60 --- README.md | 1 + tasks/portal.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index e6af002..780e355 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ Role Variables | `rhsm_password` | `[undefined]` | Red Hat Portal password. | | `rhsm_activation_key` | `[undefined]` | Red Hat Portal Activation Key. | | `rhsm_org_id` | `[undefined]` | Red Hat Portal Organization Identifier. | +| `rhsm_pool_ids` | `[undefined]` | Red Hat Subscription pool IDs to consume. | | `rhsm_method` | `portal` | Set to `portal` or `satellite` depending on where you are registering. | | `rhsm_state` | `present` | Whether to enable or disable a Red Hat subscription. | | `rhsm_autosubscribe` | `yes` | Whether or not to autosubscribe to available repositories. | diff --git a/tasks/portal.yml b/tasks/portal.yml index 3175a02..5afa00f 100644 --- a/tasks/portal.yml +++ b/tasks/portal.yml @@ -4,6 +4,7 @@ password: "{{ rhsm_password | default(omit) }}" activationkey: "{{ rhsm_activation_key | default(omit) }}" org_id: "{{ rhsm_org_id | default(omit) }}" + pool_ids: "{{ rhsm_pool_ids | default(omit) }}" state: "{{ rhsm_state | default(omit) }}" autosubscribe: "{{ rhsm_autosubscribe | default(omit) }}" consumer_name: "{{ rhsm_consumer_hostname | default(omit) }}"