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 1425677

Summary: [RFE] Hammer feature to associate config groups to a hostgroup
Product: Red Hat Satellite Reporter: Mihir Lele <mlele>
Component: Configuration ManagementAssignee: Ondřej Pražák <oprazak>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: low Docs Contact:
Priority: low    
Version: 6.2.7CC: bbuckingham, dhlavacd, jcallaha, mhulan, oprazak, oshtaier, szadok, tstrachota
Target Milestone: UnspecifiedKeywords: FutureFeature, Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-08 07:01:42 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 Mihir Lele 2017-02-22 04:48:49 UTC
Description of problem:


Customer is requesting for a feature to be able to associate config groups to a hostgroup using hammer.

The request has already been addressed on the upstream.

http://projects.theforeman.org/issues/7520

Comment 1 Satellite Program 2017-02-22 05:02:15 UTC
Upstream bug assigned to oprazak

Comment 2 Satellite Program 2017-02-22 05:02:19 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 3 Oleksandr Shtaier 2017-08-07 19:51:05 UTC
Doesn't seem as functionality was implemented. From initial feature request:
http://projects.theforeman.org/issues/7520
Title - Config group commands and host/host group association
Target release - hammer-cli-foreman-0.10.0

Verified on - hammer_cli_foreman-0.10.2
Some things are covered like:
1. perform CRUD operations on config groups themselves
and
2. manage associations between config groups and Puppet classes

hammer config-group create --help
Usage:
    hammer config-group create [OPTIONS]

Options:
 --name NAME                          
 --puppet-class-ids PUPPET_CLASS_IDS 
 --puppet-classes PUPPET_CLASS_NAMES 

hammer config-group update --help
Usage:
    hammer config-group update [OPTIONS]

Options:
 --id ID                              
 --name NAME                         Name to search by
 --new-name NEW_NAME                  
 --puppet-class-ids PUPPET_CLASS_IDS 
 --puppet-classes PUPPET_CLASS_NAMES

hammer config-group delete --help
Usage:
    hammer config-group delete [OPTIONS]

Options:
 --id ID                        
 --name NAME                   Name to search by

but cannot find anything related to hosts or host groups neither in command line nor in https://github.com/theforeman/hammer-cli-foreman/pull/276

As you can see in:
hammer config-group update --help
Usage:
    hammer config-group update [OPTIONS]

Options:
 --id ID                              
 --name NAME                         Name to search by
 --new-name NEW_NAME                  
 --puppet-class-ids PUPPET_CLASS_IDS 
 --puppet-classes PUPPET_CLASS_NAMES

or

hammer hostgroup update --help
Usage:
    hammer hostgroup update [OPTIONS]

Options:
 --architecture ARCHITECTURE_NAME                    Architecture name
 --architecture-id ARCHITECTURE_ID                    
 --ask-root-pass ASK_ROOT_PW                         One of true/false, yes/no, 1/0.
 --compute-profile COMPUTE_PROFILE_NAME              Name to search by
 --compute-profile-id COMPUTE_PROFILE_ID              
 --content-source-id CONTENT_SOURCE_ID               Content source ID
 --content-view CONTENT_VIEW_NAME                    Name to search by
 --content-view-id CONTENT_VIEW_ID                   content view numeric identifier
 --domain DOMAIN_NAME                                Domain name
...........

Comment 4 Marek Hulan 2017-08-08 07:01:42 UTC

*** This bug has been marked as a duplicate of bug 1320091 ***