Hello, I was wondering if there is a way to parse individual manifest files as part of a pre-commit hook in subversion. I am looking for something like puppetmasterd --parseonly, but that will work on individual files. This way I can reject a commit if it does not pass. Any ideas? TIA
Pete Hicks wrote:> Hello, > > I was wondering if there is a way to parse individual manifest files as > part of a pre-commit hook in subversion. I am looking for something like > puppetmasterd --parseonly, but that will work on individual files. This > way I can reject a commit if it does not pass. > > Any ideas? >puppet --parseonly --ignoreimport -- Russell A. Jackson <raj@csub.edu> Network Analyst California State University, Bakersfield When man calls an animal "vicious", he usually means that it will attempt to defend itself when he tries to kill it. _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
On Aug 7, 2007, at 6:51 PM, Russell Jackson wrote:> puppet --parseonly --ignoreimportIs this documented somewhere helpful? Is there even a "Version Controlling your Puppet Configuration" page or something? Anyone volunteer to make sure the answer to both is ''yes''? -- Should I say "I believe in physics", or "I know that physics is true"? -- Ludwig Wittgenstein, On Certainty, 602. --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
I used http://reductivelabs.com/trac/puppet/wiki/VersionControlPuppet Though I''m not 100% satisfied with how that works since I managed to commit a bad class file and my pre-commit hook didn''t catch it. On 8/7/07, Luke Kanies <luke@madstop.com> wrote:> > On Aug 7, 2007, at 6:51 PM, Russell Jackson wrote: > > > puppet --parseonly --ignoreimport > > Is this documented somewhere helpful? Is there even a "Version > Controlling your Puppet Configuration" page or something? > > Anyone volunteer to make sure the answer to both is ''yes''? > > -- > Should I say "I believe in physics", or "I know that physics is true"? > -- Ludwig Wittgenstein, On Certainty, 602. > --------------------------------------------------------------------- > Luke Kanies | http://reductivelabs.com | http://madstop.com > > > _______________________________________________ > Puppet-users mailing list > Puppet-users@madstop.com > https://mail.madstop.com/mailman/listinfo/puppet-users >-- stickm@gmail.com -==< Stick >==- _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
On 8/7/07, Luke Kanies <luke@madstop.com> wrote:> On Aug 7, 2007, at 6:51 PM, Russell Jackson wrote: > > > puppet --parseonly --ignoreimport > > Is this documented somewhere helpful? Is there even a "Version > Controlling your Puppet Configuration" page or something? > > Anyone volunteer to make sure the answer to both is ''yes''? >After checking in some bad files and breaking the puppetmaster, I am looking for a tool that can check puppet files. One of the errors was a syntax error in one file that would have been caught by this. But another was a logic error that would have only been caught by importing all of the files. I think "puppetmasterd --parseonly" would do this but I don''t want to have puppet server on my client machine just for checking the configuration. - Ian - Ian
On Aug 8, 2007, at 4:50 PM, Ian Burrell wrote:> After checking in some bad files and breaking the puppetmaster, I am > looking for a tool that can check puppet files. One of the errors was > a syntax error in one file that would have been caught by this. But > another was a logic error that would have only been caught by > importing all of the files. I think "puppetmasterd --parseonly" would > do this but I don''t want to have puppet server on my client machine > just for checking the configuration.Note that the server, as of 0.23.2, is smart enough to keep the old configuration in memory if the new one doesn''t parse, so you can continue serving out configurations to your clients even if the files on disk are invalid. -- The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. -- George Bernard Shaw --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com