At the bottom of my site.pp I have: import "nodes/*"
I haven't heard of this autoload thing, but then I'm newish. On Wed, May 02, 2012 at 11:06:17AM -0700, Philip Brown wrote: > I vaguely recall some kind of reference mentioning that as a fallback, > puppet master would attempt to load host.fqdn.pp to find a node > definition. Is that a false memory? > In practice, it does not seem to do that. > > Along those lines, is it possible to MAKE it do that? > > I've tried > > import "nodes/$hostname.pp" > but puppet doesnt seem happy with that. > I'd like to keep things simple and file-based, rather than going to a > separate external database or LDAP server. So yes I know about those, but > would prefer not to go there. > I prefer the "one service, one process to babysit" methodology :) > > The closest method I've found so far, is creating my own custom *class*, > autohost, and then using > > include "autohost::$hostname" > > Comments on this? > > I'm not sure what the effective difference between nodes and classes are, > at this point.Other than the fact that you can wildcard node definitions, > which is nice. Seems like they are practically equivalent. both can > "inherit". both can include other classes. etc, etc. > > Currently, I'm liking the idea of 300 separate files, one per host, under > autohost, where only ONE gets loaded... vs the old brute-force method of > import "nodes/*.pp" > > It disturbs my sense of efficiency to read in 300 files, when 299 of them > will be unneeded. > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To view this discussion on the web visit > [1]https://groups.google.com/d/msg/puppet-users/-/QF_o0kR7w5IJ. > 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. > > References > > Visible links > 1. https://groups.google.com/d/msg/puppet-users/-/QF_o0kR7w5IJ -- 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.