Hammer commands to modify subscriptions on content hosts

I'd like to add hammer commands to modify subscriptions both on content hosts[1] and host collections[2]. I thought I'd add this to the 'hammer subscription' command rather than to the content-host and host-collection commands.

hammer subscription attach --id $subscription-id --content-host $host-name
hammer subscription attach --id $subscription-id --host-collection-id $id

The words "attach" and "unattach" match the terminology that Red Hat documents for subscriptions.

Any disagreement on this approach?

[1] Bug #9669: need way to attach a subscription to a content host w/ hammer - Katello - Foreman
[2] Feature #10431: As a UI user i like to select hosts to attach subscriptions - Katello - Foreman
https://github.com/Katello/katello/pull/5323

··· -- @thomasmckay


“The leader must aim high, see big, judge widely, thus setting himself apart form the ordinary people who debate in narrow confines.” ~ Charles De Gaulle

“Leadership is about making others better as a result of your presence and making sure that impact lasts in your absence.” ~ Harvard Business School

I think that makes senes. Will there be a --quantity tag as well?

··· On Fri, Aug 7, 2015 at 9:23 AM, Tom McKay wrote:

I’d like to add hammer commands to modify subscriptions both on content
hosts[1] and host collections[2]. I thought I’d add this to the ‘hammer
subscription’ command rather than to the content-host and host-collection
commands.

hammer subscription attach --id $subscription-id --content-host $host-name
hammer subscription attach --id $subscription-id --host-collection-id $id

The words “attach” and “unattach” match the terminology that Red Hat
documents for subscriptions.

Any disagreement on this approach?

[1] Bug #9669: need way to attach a subscription to a content host w/ hammer - Katello - Foreman
[2] Feature #10431: As a UI user i like to select hosts to attach subscriptions - Katello - Foreman
https://github.com/Katello/katello/pull/5323


@thomasmckay


“The leader must aim high, see big, judge widely, thus setting himself
apart form the ordinary people who debate in narrow confines.” ~ Charles De
Gaulle

“Leadership is about making others better as a result of your presence and
making sure that impact lasts in your absence.” ~ Harvard Business School


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

+1

··· On Sat, Aug 8, 2015 at 9:40 AM, Bryan Kearney wrote:

I think that makes senes. Will there be a --quantity tag as well?

On Fri, Aug 7, 2015 at 9:23 AM, Tom McKay thomasmckay@redhat.com wrote:

I’d like to add hammer commands to modify subscriptions both on content
hosts[1] and host collections[2]. I thought I’d add this to the ‘hammer
subscription’ command rather than to the content-host and host-collection
commands.

hammer subscription attach --id $subscription-id --content-host $host-name
hammer subscription attach --id $subscription-id --host-collection-id $id

The words “attach” and “unattach” match the terminology that Red Hat
documents for subscriptions.

Any disagreement on this approach?

[1] Bug #9669: need way to attach a subscription to a content host w/ hammer - Katello - Foreman
[2] Feature #10431: As a UI user i like to select hosts to attach subscriptions - Katello - Foreman
https://github.com/Katello/katello/pull/5323


@thomasmckay


“The leader must aim high, see big, judge widely, thus setting himself
apart form the ordinary people who debate in narrow confines.” ~ Charles De
Gaulle

“Leadership is about making others better as a result of your presence
and making sure that impact lasts in your absence.” ~ Harvard Business
School


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Eric D. Helms
Red Hat Engineering
Ph.D. Student - North Carolina State University

Hi how do you do this. I have a new subscription to add to 2000 hosts the subscription command does not support “attach”
hammer subscription --help
Usage:
hammer subscription [OPTIONS] SUBCOMMAND [ARG] …

Parameters:
SUBCOMMAND Subcommand
[ARG] … Subcommand arguments

Subcommands:
delete-manifest Delete manifest from Red Hat provider
list List organization subscriptions
manifest-history Obtain manifest history for subscriptions
refresh-manifest Refresh previously imported manifest for Red Hat provider
upload Upload a subscription manifest

Options:
-h, --help Print help