On Mon, Aug 13, 2012 at 12:36 PM, llowder <llowde...@gmail.com> wrote:
> If using the nodes/*.pp and having your site.pp be "import 'nodes/*'", > You should avoid using the import statement (see http://projects.puppetlabs.com/issues/12929). Instead, follow the [module conventions](docs.puppetlabs.com/guides/modules.html) > what is the best practice? Is it better to have one node def per file, or > group the node defs by class (ie, all app servers in one file or all web > servers in one file) or some other layout? > Best practice is to use an external node classifier or place all of your node declarations into one site.pp file. One file is preferable because one-file-per-node scales poorly to tens of thousands of nodes as Puppet will read tens of thousands of files every time a catalog is compiled. > Also, is there a way to have the node defs broken out without having to > use import 'node/*' ? Or would that be to just list each one out by name? > You could use a single default node and selectively include classes using conditional logic. Or use an external node classifier. -Jeff -- 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.