Issue #4732 has been updated by Steve Snodgrass.

For the record I spent a long time banging my head against a wall today trying 
to figure out why the "import nodes/*" statement in the puppet 2.6 server I was 
building was not working right, when it worked fine in my 0.25 server.  All the 
node manifests in that directory were hostnames that did not end in .pp, so 
puppet gets upset with an error like this:

puppet-agent[3711]: Could not retrieve catalog from remote server: Error 400 on 
SERVER: Could not parse for environment prod: No file(s) found for import of 
'nodes/*' at /etc/puppet/environments/prod/manifests/site.pp:3 on node 
puppet.example.com

The fact that "*" really means "*.{pp,rb}" now is very confusing.  Hopefully 
this entry will help Googlers looking for this error, because Google failed me 
on this one.
----------------------------------------
Bug #4732: Use of .pp/.rb extention to sniff file type breaks "everything is 
pp" assumption
https://projects.puppetlabs.com/issues/4732

Author: Markus Roberts
Status: Accepted
Priority: Normal
Assignee: 
Category: 
Target version: 2.7.x
Affected Puppet version: 2.6.1
Keywords: 
Branch: 


R.I. writes:

This fix breaks/improves import so that it will now only import files named .pp 
or .rb where in the past it would happily have imported anything matching the 
supplied glob:

<pre>
import "/etc/puppet/manifests/nodes/*"
</pre>

This now only imports .pp and .rb not * as it’s asked to do. 






-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" 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-bugs?hl=en.

Reply via email to