On 01/05/2011 06:19 PM, Arnau Bria wrote: > On Mon, 3 Jan 2011 08:11:50 -0800 (PST) > jcbollinger jcbollinger wrote: > > Hi, > > looking for some other's experience... > > [...] > >> You could also try using ::main::luser, and perhaps even changing >> "main" to something with less potential for name collision. Better, >> however, would probably be to move luser to the top level of your >> module's init.pp (you are using modules, right?). > > In our work, we're 4 people sharing a puppet server and puppet > structure. We define our definitions inside our classes, and sometimes > we see that some of we use same def but defined in its our class (i. e. > add_line definiton). > > So, why ios the correct procdeure (or other's experince) to define > "shared" definitons?
First off, you *do* each work on distinct modules, right? So moving stuff to your init.pp is not going to inflict anything on your coworkers. Apart from that - why would you require everyone to reinvent all the wheels? Why *wouldn't* you want to define a central add_line definition? Regards, Felix -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@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.