On Mon, Apr 14, 2014 at 4:07 PM, Felix Frank <
felix.fr...@alumni.tu-berlin.de> wrote:

> Hi,
>
> bumping an old thread with a some news: I've built a proof-of-concept
> implementation of John's constraint scheme. Enjoy:
> https://github.com/ffrank/puppet/tree/constraints
>
> I'd be grateful for any feedback. Constraints can currently be added as
> normal resources to a manifest as shown in the README.
>
> Each is limited to targetting a single resource. I'd be interested in
> amending this so that metaparameter-like declarations such as
>
>   resource => Package[foo,bar]
>   resource => [ Package[foo], Service[bar] ]
>
> are supported. There's also some TODOs such as tight validation (i.e.
> syntax checks).
>
>
That is pretty cool.


> An idea for extending the concept is "weak" constrains that won't fail
> if a targeted resource is not part of a catalog.
>
> A PR is pending once these additions are complete.
>
> Thanks in advance to anyone who takes a closer look.
>
>
I'm wondering if there is a way of either doing this in a module (do the
constraint check in a provider), or if there is a change we can make to
allow this to be in a module. It would be great to be able to have the
extension points so that these kinds of things don't have to go into the
puppet repository in order to be tried out.


> Cheers,
> Felix
>
> On 02/20/2014 10:17 AM, Daniele Sluijters wrote:
> > I like a constrains style solution much better myself to, wasn't aware
> > of it at the time.
> >
> > I think with Puppet 4 we could introduce some additional pain, semver
> > wise we'd be
> > allowed to do that. If that helped fix this issue once and for all I'm
> > pretty sure the
> > community would support it too.
>
> --
> 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/534C6A4B.8020408%40Alumni.TU-Berlin.de
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Andrew Parker
a...@puppetlabs.com
Freenode: zaphod42
Twitter: @aparker42
Software Developer

*Join us at PuppetConf 2014 <http://www.puppetconf.com/>, September
22-24 in San Francisco*
*Register by May 30th to take advantage of the Early Adopter discount
<http://links.puppetlabs.com/puppetconf-early-adopter> **—**save $349!*

-- 
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/CANhgQXu5-YC_9uLW3L5%2Bo8Mb_xaDJzqfLNiTA3%2Bfd7mTRVuw%3Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to