On 12/22/2014 07:55 PM, Reid Vandewiele wrote: > > And does the transitional state copy/inherit anything from the > target final state given for the named resource, or does it have > only the (explicit) attributes specified in the Transition resource? > > > Yes. Right now all attribute defaults in the transition resource are > inherited from the target final state resource. Now that you mention > it I can imagine that this might not always be the desired behavior, > so it could make sense to introduce a parameter that affected whether > or not the transitional state had this implicit relationship to the > target state. The current behavior was mostly chosen for convenience. > I'd be curious to think through a specific scenario where the > difference was important. One doesn't spring to mind immediately for > me. Obviously it's possible already to be explicit about many/all > attributes in the transition declaration.
I would prefer for the transition to operate only on the properties that are specified. Using your original example, it would be very confusing for the user to observe the transition manage the enable property of Service[myapp]. I have not looked at your code, so I don't know about the specifics and how feasible this behavior is, but this would be my ideal design. Speaking of properties - transitions for classes and defines don't seem to make sense to me, because they don't have properties, only parameters. Sure, the compiler could try and figure out what property values are influenced by a given parameter, but that seems very complex to me, both in terms of implementation and user experience. Generally, I will join the chorus - this feature shows amazing promise! Thanks, Felix -- 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/5498C462.3010603%40Alumni.TU-Berlin.de. For more options, visit https://groups.google.com/d/optout.