Brian Gupta
2008-Aug-19 21:02 UTC
[Puppet Users] How are people catching errors in puppet configs?
Thanks, Brian -- - Brian Gupta http://opensolaris.org/os/project/nycosug/ http://www.genunix.org/wiki/index.php/OpenSolaris_New_User_FAQ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
RijilV
2008-Aug-19 21:08 UTC
[Puppet Users] Re: How are people catching errors in puppet configs?
/usr/bin/puppet --ignoreimport --parseonly $file or for erb files: erb -x -T "-" $file | ruby -c .r'' 2008/8/19 Brian Gupta <brian.gupta@gmail.com>:> > Thanks, > Brian > > -- > - Brian Gupta > > http://opensolaris.org/os/project/nycosug/ > > http://www.genunix.org/wiki/index.php/OpenSolaris_New_User_FAQ > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Trevor Vaughan
2008-Aug-19 21:12 UTC
[Puppet Users] Re: How are people catching errors in puppet configs?
puppetd --test in a VM with a ''service puppetmaster restart'' first. T On Tue, Aug 19, 2008 at 5:02 PM, Brian Gupta <brian.gupta@gmail.com> wrote:> > Thanks, > Brian > > -- > - Brian Gupta > > http://opensolaris.org/os/project/nycosug/ > > http://www.genunix.org/wiki/index.php/OpenSolaris_New_User_FAQ > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Jeff Leggett
2008-Aug-20 16:05 UTC
[Puppet Users] Re: How are people catching errors in puppet configs?
I wrote a small vim plugin to check as follows: " **puppetcheck.vim** " " SUMMARY: " " Check puppet manifest for syntax errors " " MAPS: " ,'' puppet current file " " ---------------------------------------------------------------- let project="" let compile_file="" augroup compile au! au bufenter *.pp nm ,'' :call CompilePuppet()<cr> augroup END fu! CompileFile() if g:project=="" let g:compile_file=expand("%") else let g:compile_file=g:project end endf fu! CompilePuppet() w! call CompileFile() exe "!/usr/bin/puppet --ignoreimport --parseonly ".g:compile_file "| more" endf Hope that helps! On Aug 19, 5:02 pm, "Brian Gupta" <brian.gu...@gmail.com> wrote:> Thanks, > Brian > > -- > - Brian Gupta > > http://opensolaris.org/os/project/nycosug/ > > http://www.genunix.org/wiki/index.php/OpenSolaris_New_User_FAQ--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---