On Tue, Nov 1, 2011 at 12:50 PM, Rob Terhaar <[email protected]> wrote: > Hi All, > > Does anyone have a good git pre-commit hook that's compatible with > Puppet 2.7? The example pre-commit hook on the PuppetLabs wiki[1] no > longer works, because the puppet binary no longer seems to accept > stdin.
In 2.7 'puppet manifest.pp' is no longer supported (which is puppet apply manifest.pp), and --parseonly option has it's own face which you can find out more about via: puppet help parser I think you just need to change from: syntax_check="puppet --color=false --confdir=/tmp --vardir=/tmp --parseonly --ignoreimport" syntax_check="puppet parser validate" Thanks, Nan -- You received this message because you are subscribed to the Google Groups "Puppet Users" 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-users?hl=en.
