Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1320091

Summary: [RFE] Config group commands and host/host group association
Product: Red Hat Satellite Reporter: Kamudini Gazdikova <kshirsal>
Component: HammerAssignee: Ondřej Pražák <oprazak>
Status: CLOSED WONTFIX QA Contact: Tomas Strachota <tstrachota>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1.7CC: beiming.wang, bkearney, jcallaha, mburgerh, mhulan, mlele, mtaru, pmutha, rjain, tstrachota
Target Milestone: UnspecifiedKeywords: FutureFeature
Target Release: Unused   
Hardware: All   
OS: Linux   
URL: http://projects.theforeman.org/issues/7520
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-04 19:14:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kamudini Gazdikova 2016-03-22 10:01:12 UTC
Issue :

Hammer is missing functionality around config groups, 

It should be able to:

- perform operations on config groups themselves: http://theforeman.org/api/apidoc/v2/config_groups.html
    
- manage associations between config groups and Puppet classes (outside of Puppet environments)
    
- manage associations between hosts and config groups

- manage associations between host groups and config groups

Comment 1 Tomer Brisker 2016-03-22 10:04:49 UTC
Connecting redmine issue http://projects.theforeman.org/issues/7520 from this bug

Comment 2 Bryan Kearney 2016-04-19 17:38:29 UTC
*** Bug 1324303 has been marked as a duplicate of this bug. ***

Comment 3 Bryan Kearney 2016-07-26 19:01:19 UTC
Moving 6.2 bugs out to sat-backlog.

Comment 6 Marek Hulan 2016-12-01 16:27:36 UTC
*** Bug 1266866 has been marked as a duplicate of this bug. ***

Comment 9 Satellite Program 2017-01-12 09:08:24 UTC
Upstream bug assigned to oprazak

Comment 10 Satellite Program 2017-01-12 09:08:29 UTC
Upstream bug assigned to oprazak

Comment 11 Satellite Program 2017-02-12 09:09:07 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/7520 has been resolved.

Comment 12 Tomas Strachota 2017-08-02 11:43:33 UTC
Failed.

Version Tested: Satellite-6.3 Snap 8

Commands for associating config groups with hosts and hostgroups are missing. It would be also good to add commands for incremental addition of puppetclasses to the config groups (hammer config-group [add|remove]-puppet-class ...)

CRUD actions work fine:

The commands for 
# hammer config-group -h
Usage:
    hammer config-group [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
 SUBCOMMAND                    subcommand
 [ARG] ...                     subcommand arguments

Subcommands:
 create                        Create a config group
 delete                        Delete a config group
 info                          Show a config group
 list                          List of config groups
 update                        Update a config group

Options:
 -h, --help                    print help

Comment 13 Marek Hulan 2017-08-08 07:01:42 UTC
*** Bug 1425677 has been marked as a duplicate of this bug. ***

Comment 14 Bryan Kearney 2018-09-04 19:01:43 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.

Comment 15 Bryan Kearney 2018-09-04 19:14:14 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.