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 1391824 - [RFE] Add the ability to use host collection as a matcher for smart class parameters.
Summary: [RFE] Add the ability to use host collection as a matcher for smart class par...
Keywords:
Status: CLOSED DUPLICATE of bug 1384009
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Smart Variables
Version: 6.2.2
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-04 07:03 UTC by Amit Kumar Das
Modified: 2021-06-10 11:41 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-29 09:53:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Amit Kumar Das 2016-11-04 07:03:37 UTC
Description of problem:

Presently there are only four matcher values for overriding smart class parameters in Satellite 6 which are fqdn, hostgroup, os and domain.
It would be very beneficial to be able to use host collections as a matcher value as this is the primary grouping method in Satellite and would be a common requirement to setup unique puppet overrides on.

Version-Release number of selected component (if applicable):
Satellite 6.2

Actual results:
We cannot find any fact/YAML definition related to 'Host Collection' in any
hosts which are associated to Host collections. Fact is required in hosts to create a matcher in Smart Class Parameter.

How to reproduce:
In satellite 6 server, customer want to add below attributes:
Navigate to Configure>Classes>Smart Class Parameter>check Override box>Prioritize attribute order
#hostcollection (Host Collection)

Once this is added it is listed in "Specify matchers" drop down list where customer can select:

Attribute type   Name
--------------   -------
hostcollection = APACHOSTS or NAHOSTS 

Above hosts collections (APACHOSTS/NAHOSTS etc) are earlier created in satellite and contains several hosts. Based on the specific matcher, new 'values' can be passed to all hosts.

Question arises here - Is there any facts or YAML definition available in all the hosts that is part of host collection?

I checked some hosts (Monitor->Facts) and cannot find any such facts. After running #facter in any puppet hosts, I can see below several facts which can be used to create a matcher in Smart Class Parameter but cannot find any facts related to host collection -

fqdn,
os,
domain,
hostname etc 

Expected results:
Cu is requesting to create a matcher based on host collection. Currently, we cannot find any facts/YAML definition related to Host Collection in any hosts.
Once fact is available it can be used to create a matcher.

Comment 1 Amit Kumar Das 2016-11-04 07:12:07 UTC
Type            RFE
Account Name	Queensland University of Technology
Account Number	453570

Comment 2 Marek Hulan 2016-11-04 07:17:19 UTC
I don't think host collection is being added to ENC output (YAML definition), I see only kt_env, kt_cv, lifecycle_environment, content_view, kickstart_repository. It might be easy to add though. I'd recommend opening separate RFE for that since it would be useful anyway.

Comment 3 Amit Kumar Das 2016-11-04 07:45:10 UTC
This RFE (1391824) is assign to add a matcher on host collection.

New RFE (1391831) created to include host's host collection to YAML definition.
https://bugzilla.redhat.com/show_bug.cgi?id=1391831

Comment 4 orabin 2016-12-29 09:53:09 UTC

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


Note You need to log in before you can comment on or make changes to this bug.