Issue #16856 has been updated by Stefan Goethals.

Hello Andrew,

Without this code, it is NOT possible to extend a module to support variables 
for F.I. different distributions without either:
- modifying the module itself
- Writing a wrapper module with multiple selectors to handle this.

The first is highly undesirable as it defeats the whole forge/git purpose to be 
able u use and update modules.
The second introduces a high level of complexity that is also very undesirable, 
certainly to people starting out with puppet who see the forge and the are 
extremely amazed that they have to start editing the installed modules.

With it the module developer can expose all the class params to the module user 
and provide sensible defaults for all the os'es he knows and can test without 
limiting the module to those.

To people using Hiera to separate code from variables in a consistent way this 
is the best thing that has happened to Puppet in a long time (for me in 4,5 
years).

Regards,

Stefan - Zipkid - Goethals.
----------------------------------------
Feature #16856: puppet should support data in modules
https://projects.puppetlabs.com/issues/16856#change-79132

Author: R.I. Pienaar
Status: Needs More Information
Priority: Normal
Assignee: R.I. Pienaar
Category: 
Target version: 
Affected Puppet version: 
Keywords: 
Branch: https://github.com/puppetlabs/puppet/pull/1217


At present there is a way to store data in modules using the puppet backend for 
hiera but it is optional and kind of broken.  The site hierarchy impacts how 
the puppet backend behaves which makes it impossible for module authors to 
supply data in their modules they can rely on

I propose a new hiera backend that loads a hierarchy of data from the 'data' 
directory in the module, this module must always be present in a puppet 
install.  This ability is key to the ability to create configurable forge 
modules that do not have hard coded values thanks to the puppet 3 hiera 
integration

reference the users list thread 
https://groups.google.com/d/topic/puppet-users/pvqzeyHkrY4/discussion


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to