On 8/14/2012 2:14 PM, Jeff McCune wrote:
    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.

Another option is one node file per hostgroup which doesn't get near enough mention despite its usefulness for the environments 95% of us likely administer. Provides some organization with separate files and scales to thousands of nodes assuming less than thousands of hostgroups.

node /^some regex based on hostname matching hostgroup$/ {

Ramin

--
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.

Reply via email to