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 1261498 - Importing parameterized classes in init.pp
Summary: Importing parameterized classes in init.pp
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Configuration Management
Version: 6.0.8
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-09 12:59 UTC by Sean O'Keeffe
Modified: 2017-08-01 20:34 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-01 20:34:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
erroring puppet module (20.00 KB, application/x-tar)
2015-09-09 12:59 UTC, Sean O'Keeffe
no flags Details
working puppet module, using workaround. (20.00 KB, application/x-tar)
2015-09-09 13:00 UTC, Sean O'Keeffe
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 20351 0 None None None 2017-07-19 19:47:56 UTC

Description Sean O'Keeffe 2015-09-09 12:59:13 UTC
Created attachment 1071728 [details]
erroring puppet module

Description of problem:
Puppet on satellite will give a duplicate declaration: class already defined error when you run a puppet class with a parameter that is import into init.pp and it overridden. 

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

How reproducible:
Every time

Steps to Reproduce:
1. create a puppet module that imports a parameter in init.pp (see the example module i have uploaded)
2. import into satellite and set the variable to override (tick box)
3. override the parameter on a host/host group.
4. run puppet on client

Actual results:
puppet agent will give duplicate declaration: class already defined error

Expected results:
class to run at expected

Additional info:
you can work around this by importing the parameter into a sub module, see the ldapworks.tar.gz 
importing a parameter into init.pp works okay with open source puppet.

Comment 1 Sean O'Keeffe 2015-09-09 13:00:45 UTC
Created attachment 1071729 [details]
working puppet module, using workaround.

Comment 3 Daniel Lobato Garcia 2017-07-19 11:11:36 UTC
Still happening on develop with these modules, would recommend for a 6.3 snap ideally..

Comment 4 Daniel Lobato Garcia 2017-07-19 19:47:53 UTC
Created redmine issue http://projects.theforeman.org/issues/20351 from this bug

Comment 5 Bryan Kearney 2017-08-01 20:34:31 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in 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.


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