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 1175885

Summary: [RFE] Ability to deep-merge hashes and arrays in SmartClass parameters
Product: Red Hat Satellite Reporter: Chris Roberts <chrobert>
Component: Configuration ManagementAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: low Docs Contact:
Priority: low    
Version: 6.0.6CC: bkearney, djuran
Target Milestone: UnspecifiedKeywords: FutureFeature
Target Release: Unused   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-14 21:08:21 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 Chris Roberts 2014-12-18 20:07:51 UTC
Hello!

We are today using hiera and using the hiera_hash and hiera_array to
create deep-merges hash and array data and we would like similar
functionality in Satellite 6, in SmartClass parameters
To give an example, we would like the ability to create the following
hash in a HostGroup

serversettings:
  VCN-AD: 
    nisdomain: vcn.ds.volvo.net
    srvdomain: SE-GOT._sites.vcn.ds.volvo.net
  XYZ-AD:
    nisdomain: xyz.ds.volvo.net
    srvdomain: SE-GOT._sites.xyz.ds.volvo.net

Then on an individual Host, we would like the ability to override a
single key of the hash by specifying a hash like the one below and
marking that the hashes should be merged rather the overridden

serversettings:
  VCN-AD:
    nisdomain: vcnqalab.dsqalab.volvo.net
    srvdomain: SE-GOT._sites.vcnqalab.dsqalab.volvo.net

The resulting hash should then be

serversettings:
  VCN-AD: 
    nisdomain: vcnqalab.dsqalab.volvo.net
    srvdomain: SE-GOT._sites.vcnqalab.dsqalab.volvo.net
  XYZ-AD:
    nisdomain: xyz.ds.volvo.net
    srvdomain: SE-GOT._sites.xyz.ds.volvo.net


We would also need the same functionality for arrays.

Comment 2 RHEL Program Management 2014-12-18 20:24:10 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 4 David Juran 2015-01-07 15:23:25 UTC
I think this is a dup of Bz 1010575

Comment 5 Bryan Kearney 2015-04-14 21:08:21 UTC
David is correct, closing this.

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