Skip to content

A git hook for puppet repositories to ensure proper syntax and style of puppet manifests and templates

License

Notifications You must be signed in to change notification settings

baron42bba/puppet-git-hook

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This project contains a git hook, which is meant to be used for git repositories containing puppet configuration and helps to ensure proper syntax and style for puppet manifests and templates.

The hook can be either used as pre-commit hook in a working copy or as update hook in a bare repository.

Usage

  • Ensure you've the following binaries available on your system:
    • puppet
    • puppet-lint (>= 1.0.0)
    • ruby
    • erb
  • Store the pre-commit script either named as pre-commit in the hooks directory of you working copy or store it named as update (update.secondary for gitolite) in the hooks directory of a bare repository. Ensure that the hook has executable permissions.

Contribution

Pull Requests are welcome!

About

A git hook for puppet repositories to ensure proper syntax and style of puppet manifests and templates

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%