Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1088751 - [RFE] Allow override of smart class parameter without specifying or forcing a default value
[RFE] Allow override of smart class parameter without specifying or forcing a...
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Configuration Management (Show other bugs)
6.0.2
Unspecified Unspecified
high Severity medium (vote)
: Unspecified
: Unused
Assigned To: orabin
jcallaha
http://projects.theforeman.org/issues...
: FutureFeature, Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2014-04-17 02:37 EDT by Dominic Cleal
Modified: 2017-02-23 16:17 EST (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-08-12 01:08:17 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1592 normal SHIPPED_LIVE Important: Red Hat Satellite 6.1.1 on RHEL 6 2015-08-12 05:04:35 EDT

  None (edit)
Description Dominic Cleal 2014-04-17 02:37:40 EDT
Description of problem:
When override is ticked for a smart class parameter, the value is always supplied to Puppet - be it a default value, or an override.  Setting a default should be optional, in which case no value is given to Puppet via the ENC unless an override is used.

This will allow the default value of the parameter to be determined by the Puppet manifest rather than having to be set to a fixed value in Foreman.

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

How reproducible:
Always

Steps to Reproduce:
For an example_class with a parameter called example_param, whose default value is "foo":

1. Configure > Puppet class, edit a class' smart class parameter and tick Override
2. Edit or create a host, assign the class to it
3. View the host page, click YAML

Actual results:
classes:
  example_class:
    example_param: foo

Expected results:
classes:
  example_class
Comment 13 Bryan Kearney 2014-10-30 10:02:03 EDT
Moving to POST since upstream bug http://projects.theforeman.org/issues/3260 has been closed
-------------
Ori Rabin
Applied in changeset commit:8e53b7c915ecab576e5950b20e75552ec6a02edb.
Comment 16 jcallaha 2015-03-06 15:34:23 EST
Verified in Satellite 6.1.0 snap 5.

Version tested:
RHEL 66
RHEL 7
Comment 17 Bryan Kearney 2015-08-11 09:31:59 EDT
This bug is slated to be released with Satellite 6.1.
Comment 18 errata-xmlrpc 2015-08-12 01:08:17 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2015:1592

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