I plan on opening a feature request on this, but I wanted to start a 
discussion and get an idea of possibilities and implications before I did.

I think it would be nice to be able to use the databinding feature of hiera 
/ puppet 3 with defines. Now, since defined types are not singletons, it 
does pose a bit of a problem in terms of addressing.

How problematic would it be to support something like:

define module::mydefine(
  $param1 = 'value'
  ){
  ....
  }

In the node def:

module::mydefine{ 'foo': }

Somewhere in the hiera hierarchy something like:

module::mydefine::foo::param1: 'othervalue'

I know under current setups, the above key would be corresponding to a 
class located at $modulepath/module/manifests/mydefine/foo.pp

but would something like I described even be feasible? Or is there another 
construct that would allow similar usage?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-dev/-/67dFxhI3re8J.
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-dev?hl=en.

Reply via email to