On Monday, July 16, 2012 10:42:11 AM UTC-5, Felix.Frank wrote: > > On 07/16/2012 04:14 PM, jcbollinger wrote: > > That feature isn't available today, as far as I know, but I have an idea > > how it might look. In fact, I had it about six months ago. Remember > > resource constraints > > ( > https://groups.google.com/forum/?fromgroups#!topic/puppet-users/Fvl0aOe4RPE)? > > > The idea arose as an approach to cross-module dependencies, but it would > > address this problem as well. In fact, this problem is pretty similar > > to a cross-module dependency issue, and might even be one. > > I do. Sometimes even wondered if that made it to some pin-board down at > puppetlabs ;-) > > But I'm not sure they're the best solution for the problem at hand. My > understanding is that you would have each class declare constraints on > given users' group memberships, e.g. user jo needs to be in the devs > group. > The only real advantage I see here is that, yes, you can make the > compilation fail if your hiera data is not consistent with your business > logic. That doesn't really simplify the way to get to the desired catalog. > > Am I missing a wholly different implied intention of your's here? >
Apparently so. I don't want to drag this thread off into a rehash of the constraints idea, but one of the central ideas is that it allows cooperative specification of resource properties. Constraints -- as I envision them -- are not a dynamic validation feature, but rather an indirect, deferred declaration feature. In many cases, explicit resource declarations could be replaced by one or more constraints on the same resource, which could appear anywhere in the manifest set. Everything gets resolved after all resources are compiled. I'll say no more about that here, but if anyone wants to discuss it further then I'd be likely to respond to a new thread on that topic. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/Q_fD1qLRUHwJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.