On Apr 16, 3:13 am, Jonathon Anderson <anderbub...@gmail.com> wrote: > On Monday, April 9, 2012 5:35:09 PM UTC+3, jcbollinger wrote: > > > I'm not following why defined types present a special problem here. > > They aren't a special problem: they simply haven't *solved* the problem. > If as generalized as I can get is defining some types, where do I put the > declaration of these types so that they get applied to my nodes?
You put them into classes that are declared on your nodes -- but that can't be the answer you're looking for. If Jeff's response does not adequately address your question then perhaps an example would help. What kind of defined type instances are you struggling to find a home for? > It's entirely possible that this is just a namespacing question: I've seen > references to a `site` module where such site-specific classes should go, > and, as I've said, we're already using modules with a `s_` prefix for this > purpose; but I'm looking for what the normal thing is. If modules are not > supposed to be site-specific, where do I put my site-specific config? As a matter of best practices, modules should not contain site- specific *data*. Instead, they should obtain such data from an external source, one or more of node facts, external data via a service such as hiera, or class parameters. Also as a matter of best practices, all classes should be in modules. These principles do not conflict. If you have classes that are site-specific in the sense that nobody else would want to do the things they do (as opposed to containing site-specific data), then I don't see any problem with putting them in one or more modules. If you want, you can add a directory to your module path for such modules, but I don't see any special need to do so. John -- 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.