On 2013-27-06 18:28, Ashley Penney wrote:
I hate to ask this but could you give an example here?  I just made an
attempt to read ARM-8 and maybe I'm just not that smart but I found it
almost impossible to understand.  I couldn't find anything that looked
like the reusing of a subnet in other classes.  I'm working my way
through the examples document which is (so far) the only thing I've
properly understood.  The ARM-8 itself is off talking about lambas and
multi binding and consumers and so forth and I just stuggled to get any
kind of overview/feeling for what's going on..


ARM-8 is very technical and detailed; also unfinished...

The syntax for binding parameters in the proposed Puppet DSL syntax
is:

  bind parameters myclass to { x => 'value', y => 'value' }

which sets the parameters x and y of class 'myclass'.
If you want to bind the parameters of myotherclass to the same values as those for myclass you write

  bind parameters myotherlcass to myclass

that is, if they both accept x and y as parameters. (If they don't there is a way to bind a mapping of names).

The extension of this is that it will also be possible to define structured typed/named data - in some cases it makes more sense to define such a "data record" and use that for several classes.

And to follow on from there we have cross-node functionality where such structured data may come from a different node.

The core idea in ARM.8 is that there should be one binding/injection mechanism uniting the various ways data gets concretely bound to parameters, etc.

We are currently working on a subset of ARM-8 for data in modules where hiera is given a small facelift at the same time.

Hope that helps explain a bit about ARM-8 and the specific thing; "reusing parameter bindings" that I pointed out earlier.

Regards
- henrik



--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-dev.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to