redhat-subscription module functionality enhancement

143 views
Skip to first unread message

Jeff Richards

unread,
Jun 6, 2016, 3:16:16 PM6/6/16
to Ansible Project
We currently use a role comprising shell commands to subscribe systems to Red Hat Network but I noticed that there is now a redhat_subscription module, providing basic functionality in this area.

Are there any plans to enhance the functionality of this module? It's currently not useful to us because of our specific (and I'm sure not unique) use-case. We have multiple license pools which are identically named, each with its own license availability. This has resulted from ongoing license purchases over time.

Problem: the redhat_subscription module subscribes a system to every license pool matching the specified name.

So are there any plans to add intelligence to this module? In particular, are there any plans to have it process the license availability in each pool and only attempt to subscribe to one that actually has availability? As opposed to blindly attempting to subscribe to a matched pool.

Jeff

Uwe Sauter

unread,
Jun 6, 2016, 5:09:14 PM6/6/16
to ansible...@googlegroups.com
I'd really like to see some improvements to this module as well. The current situation keeps me from using it. Instead I
also have a bunch of shell tasks that handle registering and attaching a host to a specific pool.

The problem I have with this module is that there is an argument called "pool" which actually is misleading. With Red
Hat subscriptions pools are unique ID that identify a collection of different Red Hat products. If I attach to a pool, I
get this exact collection.

The Ansible module uses the pool parameter as regex to search into all available Red Hat pools for products that match
(and than attach to all RH pools that match).

Uwe

Am 06.06.2016 um 19:05 schrieb Jeff Richards:
> We currently use a role comprising shell commands to subscribe systems to Red Hat Network but I noticed that there is
> now a redhat_subscription module, providing basic functionality in this area.
>
> Are there any plans to enhance the functionality of this module? It's currently not useful to us because of our specific
> (and I'm sure not unique) use-case. We have multiple license pools which are identically named, each with its own
> license availability. This has resulted from ongoing license purchases over time.
>
> Problem: the redhat_subscription module subscribes a system to *every* license pool matching the specified name.
>
> So are there any plans to add intelligence to this module? In particular, are there any plans to have it process the
> license availability in each pool and only attempt to subscribe to one that actually has availability? As opposed to
> blindly attempting to subscribe to a matched pool.
>
> Jeff
>
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> ansible-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To post to this group, send email to ansible...@googlegroups.com <mailto:ansible...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/2b4b339a-4f71-4b5f-82a5-9ae837e7ed04%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/2b4b339a-4f71-4b5f-82a5-9ae837e7ed04%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

Jörg Kastning

unread,
Jul 25, 2016, 4:52:25 AM7/25/16
to Ansible Project
I'd like to request a feature enhancement, too. It would be great to have an option to enable/disable a repository in redhat.repo file using the subscription-manager. The requested feature is described by this [Red Hat Article](https://access.redhat.com/solutions/265523).

To enable/disable a repository in redhat.repo file you could use:
[root@server ~]# subscription-manager repos --enable=rhel-6-server-optional-rpms

[root@server ~]# subscription-manager repos --disable=rhel-6-server-optional-rpms

I would like to have the same option in the redhat_subscription module.

Joerg

Greg DeKoenigsberg

unread,
Jul 25, 2016, 8:33:19 AM7/25/16
to Ansible Project
Sounds like it could be a pretty straightforward patch for somebody, and it's a great way to learn more about how Ansible works. 

There are over 2000 contributors to Ansible, and the vast majority of them are users who submitted small-ish patches to add functionality in cases just like this.


--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/df7e60af-715d-4f0c-a6fd-4b809a312de1%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Greg DeKoenigsberg
Ansible Community Guy
Reply all
Reply to author
Forward
0 new messages