Issue #4977 has been reported by Jordan Sissel.

----------------------------------------
Bug #4977: Puppet --parseonly should take multiple manifests
http://projects.puppetlabs.com/issues/4977

Author: Jordan Sissel
Status: Unreviewed
Priority: Low
Assignee: 
Category: 
Target version: 
Affected version: 
Keywords: 
Branch: 


Syntax checking my manifests is useful. However, doing it quickly  is hard 
because 'puppet apply --parseonly' only uses the first argument and ignores the 
rest of the arguments without a clear message.

If you try to 'puppet apply --noop more than one puppet manifest' it will warn 
you, but --parseonly does not.

Here's an example of what I would like to work:
<pre>
% touch a.pp b.pp c.pp d.pp
% echo "a syntax error" > e.pp

# This should report a syntax error in 'e.pp'
% puppet --parseonly a.pp b.pp c.pp d.pp e.pp 

# This correctly finds the error, but is slow:
% ls *.pp | xargs -n1 puppet apply --parseonly
err: Could not parse for environment production: Syntax error at end of file at 
/tmp/z/e.pp:2
</pre>

The bulk of the time spent is in puppet startup time, it seems.

I have a feeling it would be faster if --parseonly could take multiple files 
and syntax check all of them, though I have no evidence to back this up.

This is a low priority request.


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