On Monday, May 19, 2014 11:42:57 AM UTC-5, Alessandro Franceschi wrote:
>
>
> The hierarchy of such a tp module has to be module specific and should not 
> depend on how data is managed in users’ hiera.yaml.
> Default data for the managed applications should be placed in the same tp 
> module and be based on a module specific hierarchy, it would contain 
> references to osfamily/operatingsystem/etc facts that can’t be forced into 
> the users’ own local hierarchies (besides that fact that imho in a sane 
> /etc/puppet/hiera.yaml file there should not be references to OS related 
> facts) .
>


Ok, but you're throwing a curve there.  Your original suggestion / request 
had none of those constraints.  Would those concerns be adequately 
addressed if R.I.'s data in modules were in the core product?  
Alternatively, would it be acceptable for the 'tp' module to depend on a 
module providing that feature?  Or to provide that or something equivalent 
itself?


> Thanks anyway for the attempt, hopefully now is clearer why I can’t do 
this with existing functionalities.


Your requirements are clearer, yes.  What's not quite clear yet is whether 
you want to avoid your data binding falling back to general data when 
resource parameters are not found in module-specific data.  If you do want 
to avoid that then I think you're right that existing functionalities won't 
do what you want, but then I'm certain that you were wrong earlier about 
what you want being achievable by a simple modification.

On the other hand, I think you could put a custom function into module 'tp' 
that would read data from (only) a module-specific data source, along lines 
similar to hiera.  If you used such a function instead of hiera(), then 
could a solution along the lines I described work for you?


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/55992d15-8cdb-406b-b5d6-051f85e0adc3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to