kevin
2009-Jan-21 04:23 UTC
[Puppet Users] checking syntax or linting a manifest without applying it
How would I check the syntax of a site installation? Ideally I''d run a command on site.pp, and have the syntax of all the imported files checked, before i deployed it onto systems. is this possible? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
James Turnbull
2009-Jan-21 04:34 UTC
[Puppet Users] Re: checking syntax or linting a manifest without applying it
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 kevin wrote:> How would I check the syntax of a site installation? > > Ideally I''d run a command on site.pp, and have the syntax of all the > imported files checked, before i deployed it onto systems. >The --parseonly option is used for this, see some examples of its use at: http://reductivelabs.com/trac/puppet/wiki/Recipes/GrowlManifestErrors http://reductivelabs.com/trac/puppet/wiki/VersionControlPuppet Cheers James Turnbull - -- Author of: * Pulling Strings with Puppet (http://www.amazon.com/gp/product/1590599780/) * Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/) * Hardening Linux (http://www.amazon.com/gp/product/1590594444/) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJdqXF9hTGvAxC30ARAkivAKCn3dwyQVaIsJ+WVJdW3hz1+U+EUACgim4Q N/RzyWwHYYs4tXqnWxPDLiw=wqcr -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
kevin
2009-Jan-21 07:26 UTC
[Puppet Users] Re: checking syntax or linting a manifest without applying it
On Jan 20, 11:34 pm, James Turnbull <ja...@lovedthanlost.net> wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > kevin wrote: > > How would I check the syntax of a site installation? > > > Ideally I''d run a command on site.pp, and have the syntax of all the > > imported files checked, before i deployed it onto systems. > > The --parseonly option is used for this, see some examples of its use at: > > http://reductivelabs.com/trac/puppet/wiki/Recipes/GrowlManifestErrorshttp://reductivelabs.com/trac/puppet/wiki/VersionControlPuppet > > Cheers > > James Turnbull > > - -- > Author of: > * Pulling Strings with Puppet > (http://www.amazon.com/gp/product/1590599780/) > * Pro Nagios 2.0 > (http://www.amazon.com/gp/product/1590596099/) > * Hardening Linux > (http://www.amazon.com/gp/product/1590594444/) > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.7 (Darwin) > Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org > > iD8DBQFJdqXF9hTGvAxC30ARAkivAKCn3dwyQVaIsJ+WVJdW3hz1+U+EUACgim4Q > N/RzyWwHYYs4tXqnWxPDLiw> =wqcr > -----END PGP SIGNATURE-----Thanks again for the great help. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
lluis
2009-Jan-22 13:33 UTC
[Puppet Users] Re: checking syntax or linting a manifest without applying it
If you use subversion to deploy your manifests, you can also set a pre-commit hook: http://reductivelabs.com/trac/puppet/wiki/Recipes/SubversionCommitHooks El dt 20 de 01 de 2009 a les 23:26 -0800, en/na kevin va escriure:> > > On Jan 20, 11:34 pm, James Turnbull <ja...@lovedthanlost.net> wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > kevin wrote: > > > How would I check the syntax of a site installation? > > > > > Ideally I''d run a command on site.pp, and have the syntax of all the > > > imported files checked, before i deployed it onto systems. > > > > The --parseonly option is used for this, see some examples of its use at: > > > > http://reductivelabs.com/trac/puppet/wiki/Recipes/GrowlManifestErrorshttp://reductivelabs.com/trac/puppet/wiki/VersionControlPuppet > > > > Cheers > > > > James Turnbull > > > > - -- > > Author of: > > * Pulling Strings with Puppet > > (http://www.amazon.com/gp/product/1590599780/) > > * Pro Nagios 2.0 > > (http://www.amazon.com/gp/product/1590596099/) > > * Hardening Linux > > (http://www.amazon.com/gp/product/1590594444/) > > > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v1.4.7 (Darwin) > > Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org > > > > iD8DBQFJdqXF9hTGvAxC30ARAkivAKCn3dwyQVaIsJ+WVJdW3hz1+U+EUACgim4Q > > N/RzyWwHYYs4tXqnWxPDLiw> > =wqcr > > -----END PGP SIGNATURE----- > > Thanks again for the great help. > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---