Issue #5259 has been updated by Markus Roberts. Priority changed from Normal to Immediate
This is already in progress; the concept of unique designated a namevar was essentially removed in 2.6.x. The issue is a little more subtle with title vs. name, where there are really two distinct concepts in play. Every resource needs a unique designation so that we can refer to it from elsewhere in the manifest -- we call this its title. Many resources (e.g. files) also have an attribute which is known as their name and we often -- but not always! -- want to use this value as their title, so there's a mishmash of defaulting between the two, and this has been extended to types which do not have a "name" per se. Title is now a compound value internally (to support things like ports, where the same port number might have different meanings for tcp/udp, files, where on some operating systems the same file name might exist on several drives, etc.) and name is on the way to being treated like just any other attribute. ---------------------------------------- Bug #5259: Synonyms (title, namevar, name) make it confusing. https://projects.puppetlabs.com/issues/5259 Author: Jordan Sissel Status: Accepted Priority: Immediate Assignee: Category: Target version: Affected Puppet version: Keywords: consistency usability Branch: * If you're querying a resource, it's Someresource <| title == ... |> * If you're writing a provider, it's called a 'namevar' * If you're implementing a custom define, it's called $name. This is confusing and could benefit from unification, even if it's a small step such as unifying $name and title. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
