In general, there isn't much there for you.

Beyond simple syntax, you could probably either directly validate or write
validators for:

* type and define/parameter matching

* class/parameter matching

* existence of all specified types/defines/classes/functions

* any Puppet plugins

I expect there's other stuff you could test for, but this is what I can
think of off the top of my head.  If you ask me specifically, I can probably
point out how to validate a given entity.

-- 
http://puppetlabs.com/ | +1-615-594-8199 | @puppetmasterd

On Feb 23, 2011, at 6:19, Thomas Hallgren <[email protected]> wrote:

OK, but that validates a puppet manifest only, right? I need to validate the
types etc. too and ideally the consistency of the module.

- thomas

On 2011-02-23 15:15, Christopher Johnston wrote:

Most of my stuff is in git, so I use a pre-commit to validate it but here is
the puppet command you can use.

 cat manifest.pp | puppet --color=false --parseonly --ignoreimport

 On Wed, Feb 23, 2011 at 7:58 AM, Thomas Hallgren <[email protected]> wrote:

> Hi,
>
> In Geppetto, we'd like some way of validating a module. In essence, the
> validator should verify that all manifests, types, etc. are syntactically
> correct and contains needed entries. I'm curious if there is some existing
> code in puppet that does something similar that we could call on?
>
> - thomas
>
> --
> 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.
>
>

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

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