On Wednesday, June 29, 2016 at 8:57:51 AM UTC-5, Bret Wortman wrote: > > I like that, John. Titles are guaranteed to be unique or the catalog won't > compile, right? This is absolutely supposed to be a one-and-only-one kind > of thing, so using title makes much more sense. >
Yes, all resource titles used in a single catalog-building run must be unique for their types(*) with respect to that catalog-building run -- those of ordinary resources, those of virtual resources (even if not realized), those of exported resources declared (even if not collected), and those of other nodes' exported resources that are collected into the catalog. A parallel uniqueness requirement applies to resource names, which are not always the same as their resources' titles. A duplicate resource (type, title) or (type, name) will cause catalog compilation to fail. If you want to be certain, however, then by all means write a test for that case. (*) Except for the Exec resource type. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/abff9c5e-27c9-4f32-8bb2-6135046cdb17%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.