Forge Home


Module for installing Git or Gitosis.


2,642,062 latest version

3.1 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.5.0 (latest)
  • 0.4.0
  • 0.3.0
  • 0.2.0
  • 0.1.0
  • 0.0.3
  • 0.0.2
  • 0.0.1
released Jun 28th 2016
This version is compatible with:
  • Puppet Enterprise 3.x
  • Puppet 3.x
  • , , ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'puppetlabs-git', '0.5.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add puppetlabs-git
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install puppetlabs-git --version 0.5.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.



puppetlabs/git — version 0.5.0 Jun 28th 2016


####Table of Contents

  1. Overview - What is the git module?
  2. Module Description - What does the module do?
  3. Setup - The basics of getting started with git
  4. Usage - Configuration options and additional functionality
  5. Limitations - OS compatibility, etc.
  6. Development - Guide for contributing to the module


Simple module that can install git or gitosis

##Module Description

This module installs the git revision control system on a target node. It does not manage a git server or any associated services; it simply ensures a bare minimum set of features (e.g. just a package) to use git.


###What git affects

  • Package['git']

The specifics managed by the module may vary depending on the platform.


###I just want git installed Simply include the git class.

include git

###I want to configure git using hiera

git::configs: 'test' ''
    value: false
    scope: system

If using the flat config syntax, options common to all items can be set:

  core.filemode: false
  scope: system

###I want to use git subtree with bash completion

include git::subtree

###I want to set my and

git::config { '':
  value => 'John Doe',

git::config { '':
  value => '',



  • git: Installs the git client package.
  • gitosis: Installs the gitosis package. No configuration
  • subtree: Installs and configures git-subtree for git 1.7 and up.


  • git::config: Set git global configuration for the user running puppet, for the specified $user or for the system.


  • git_exec_path: Path to the directory containing all git-* commands.
  • git_version: Version of git that is installed. Undefined if not installed.


This module is known to work with the following operating system families:

  • RedHat 5, 6
  • Debian 6.0.7 or newer
  • Ubuntu 12.04 or newer


Puppet Labs modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. We can’t access the huge number of platforms and myriad of hardware, software, and deployment configurations that Puppet is intended to serve.

We want to keep it as easy as possible to contribute changes so that our modules work in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.

You can read the complete module contribution guide on the Puppet Labs wiki.