On Mon, May 17, 2010 at 5:34 PM, Luke Kanies <[email protected]> wrote:
> Hi all, > > I'm working two Environment tickets: > > http://projects.puppetlabs.com/issues/3517 > http://projects.puppetlabs.com/issues/2834 > > I was reminded that I made the decision not to require site.pp any more - > if you're using an external node classifier and modules, then this file > would often end up empty, so it makes no sense to require it. > > However, I just realized an annoying repercussion of this fact: We now > can't easily tell if an environment is real or fat-fingered. > At least, this is true if you're using node constructs -- if you're using > an external node classifier, I assume it would refer to classes which Puppet > wouldn't be able to look up because the module path wouldn't resolve > correctly. > > Normally you'd require that site.pp exist, and then it would have node > information that resulted in classes being looked up in the module path, > etc. > > So, the question becomes, is this a bug? I assume so, but I don't know how > to fix it. What defines whether an environment exists? > We used to require environments be strictly listed, but we stopped that at > the request of the community. > Not really though? We did have a list of them as well as a list of environment definitions, now we just have a list of environment definitions. Isn't that our authoritative info on whether an environment exists or not? What is an environment if you haven't defined *something* in a [environment_name] block in the server config file? > > Now it's just "if you ask for something and it doesn't exist, then the > environment doesn't exist", which isn't very specific, and can make it very > difficult to figure out whether you've got a fat-finger or not. > > Ideas? Comments? -- nigel -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.
