On 2014-01-04 15:22, jcbollinger wrote:


On Monday, March 31, 2014 3:55:03 PM UTC-5, Henrik Lindberg wrote:

    Going forward, I think the Puppet Language should handle the situation
    where more than one resource definition / class definition is made and
    where the two are considered compatible (they describe the "same
    state"). We are discussing solutions for this with the idea to solve
    this during Puppet 4x.



I'd really be interested in hearing more about that.  In particular, I'm
interested in how one might judge whether resource declarations are
compatible when they are not identical (after defaults, overrides, and
any other relevant modifications are applied).  I still have yet to hear
any approach to this problem that I like better than my "constraints"
idea, now more than two years old:
https://groups.google.com/forum/#!searchin/puppet-users/module$20compatibility$20constraints/puppet-users/Fvl0aOe4RPE/XpoI1oKpTF0J.
On the other hand, I haven't heard much of anything new on the topic
since that particular thread went cold.

One major problem is containment, if something is declared more than once, and with different constraints, that needs to be recorded somewhere - the 3x catalog format does not lend itself easily to something like that. In the first cut of the 4x catalog model we added the idea of a proxy resource; if the same resource is required from more than one place, those places become proxies for the resource that has the aggregated constraints.

We have not yet drilled any deeper into how the constraints work, what is considered compatible etc.

When we get to it, there are lots of things to deal with wrt. containment and dependencies of the proxies (dependencies needs to also be joined, and may need to propagate to their containers, etc. We will probably start with solving those issues (with the idea that there is at least one set of compatibility when resources are identical which gives us a starting point.


- henrik

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/lhfbie%24cm7%241%40ger.gmane.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to