On Monday, April 14, 2014 6:07:55 PM UTC-5, Felix Frank 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). 
>
> 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. 
>
>

That is really exciting!

And it's great that the code changes were so modest -- I had imagined that 
constraints might require much deeper changes than that.  Felix, you're my 
hero!


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/f97e234e-b728-4781-8aca-43786528e3e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to