You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppe...@googlegroups.com
Your code basically runs puppet parser validate with or without --parser
future afaict
Result of validation:
current | future | meaning
------- | ------ | -------
Y | Y | ambiguous, evaluation may fail in either
Y | N | most likely not intended for use with future parser
N | Y | most likely intended for future parser
N | N | manifest is universally broken
Note that puppet validate only finds static parsing problems (lexical,
syntactical, and a few semantic errors), but not evaluation problems.
If your intent is simply to rule out those manifests that could not
possibly be used with the current parser, then your code is good. For
other use cases, there is probably too much uncertainty to be of real
practical value in a general way (maybe it is still useful to your code
base because you can make certain assumptions).
Also note that Puppet Enterprise 3.8.0 contains a Catalog Preview tool
that can help more precisely validation and point to evaluation
problems. This tool is only available for Puppet Enterprise users.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppe...@googlegroups.com
Yea, since I don't actually run evaluation at this point I only need a manifest to parse.
I am using this in my project: http://github.com/logicminds/puppet-retrospec if you are curious. I am thinking I may need to hot swap parser versions during manifest inspection in order to produce the same output for future parser code.
Thanks for taking the time to respond. I will have a look at the catalog preview tool which I assume is useful for comparing 4.x catalogs with 3.x catalogs.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppe...@googlegroups.com
On 2015-23-04 21:36, Corey Osman wrote:
> Yea, since I don't actually run evaluation at this point I only need a
> manifest to parse.
>
> I am using this in my project:
> http://github.com/logicminds/puppet-retrospec if you are curious. I am
> thinking I may need to hot swap parser versions during manifest
> inspection in order to produce the same output for future parser code..
>
> Thanks for taking the time to respond. I will have a look at the
> catalog preview tool which I assume is useful for comparing 4.x catalogs
> with 3.x catalogs.
>
Yes, as well as 4x catalogs with eachother. This will be part of PE 3.8
release, and it is a PE only feature.