Hi Ellison, You can do `puppet decribe <type>` from the command line and it should tell you which attribute is the namevar for that type. Most types use 'name' for their namevar, but some (like file) do not. Hope that helps!
On Wed, Dec 5, 2012 at 11:46 AM, Ellison Marks <gty...@gmail.com> wrote: > So I was looking at the type reference, and noticed that for a lot of the > types, no namevar was listed. When I checked the types in the code, for > each of those omissions, the namevar was simply "name". Now, it might be > self evident that this is the case, but a little documentation couldn't > hurt, If not in each type, at least in the section where it describes what > namevars are. Something like: "If namevar is not specified, assumed that it > is 'name'". > > -- > 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/-/xtGOPopeEHoJ. > 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. > -- Gary Larizza Professional Services Engineer Puppet Labs -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. 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.