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.

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?

--
Don't hit at all if it is honorably possible to avoid hitting; but
never hit soft! -- Theodore Roosevelt
---------------------------------------------------------------------
Luke Kanies  -|-   http://puppetlabs.com   -|-   +1(615)594-8199

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

Reply via email to