On Wed, Aug 15, 2012 at 8:00 AM, jcbollinger <john.bollin...@stjude.org>wrote:
> > > On Tuesday, August 14, 2012 4:14:47 PM UTC-5, Jeff McCune wrote: > >> On Mon, Aug 13, 2012 at 12:36 PM, llowder <llow...@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<http://projects.puppetlabs.com/issues/12929>). >> Instead, follow the [module conventions](docs.puppetlabs.** >> com/guides/modules.html <http://docs.puppetlabs.com/guides/modules.html>) >> >> > Come on, Jeff. The OP is asking specifically about the one usage pattern > for 'import' that that ticket acknowledges is required to be supported. > Sorry for the confusion. To be clear, we're going to deprecate import. The ticket says we'll provide this required functionality in associated (feature) tickets. "We’re committed to solving this use case in associated tickets." My suggestion is meant to help the OP avoid the overhead of migrating away from import once we deprecate it. Two ways to avoid that overhead are to put all your node declarations in site.pp or use an external node classifier. I'm not trying to be difficult or anything... I'm really just trying to make it a slightly smoother path forward for llowder. As far as I know, every Puppet configuration must choose among these > alternatives: > > - declare nodes directly in site.pp, and/or > - declare nodes in files 'import'ed by site.pp, or > - declare no nodes at all. > > Even sites that rely on an ENC often have at least a few node > declarations. The question is about how to organize them. > > As to that question, I don't think there is an established best practice. > My best advice is to choose an approach that makes sense, and *stick to it > *. If you decide later that a different approach would be better, then > change everything over (i.e. don't mix). This is all about > maintainability. You need to be able to easily find the node declaration > you want, and if that declaration is absent then to determine that quickly > and reliably. > This is good advice, however, if you pick something that makes use of import, you won't be able to stick with it for the long term because we will drop the import statement in future Puppet versions. We intend to deprecate import in Telly. -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.