Forge Home


Git client installation and configuration


6,508 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

  • 1.2.0 (latest)
  • 1.0.1
  • 1.0.0
  • 0.1.0
released Sep 14th 2017
This version is compatible with:
  • Puppet 3.x
  • ,

Start using this module

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

Add this module to your Puppetfile:

mod 'inet-git', '1.2.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

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

Manually install this module globally with Puppet module tool:

puppet module install inet-git --version 1.2.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.

Tags: git


inet/git — version 1.2.0 Sep 14th 2017


Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with git
  4. Usage - Configuration options
  5. Reference


Git client installation and configuration. Tested on Debian and ubuntu, and should work on RedHat family.

Module Description

Uses the git config command to apply configuration in various places.


What git affects

  • git package.
  • git configuration.

Beginning with git

include ::git is enough to install git and fetch configuration from hiera.


Specific configurations:

class { 'git':
    git_config => {
        "color.ui" => {
            value => 'auto',

You can also use a hiera hash to manage your configuration.

        value: auto
        user: foobar
        value: commit
        user: foo
        dir: '/var/www'
        value: ".hooks/"
        ensure: absent
        zone: global
        user: bar


Class: git


git_config Pass a hash to create git::config resources.

Type: git::config

title Can be in the form section.key.

ensure Manage the presence of the configuration key.

dir Specify a git repository to which apply the configuration.

key Configuration key to manage. Default guessed from title.

section Configuration section for the key to manage. Default guessed from title.

user Apply the configuration for the user. Default 'root'.

value Value of the configuration. This string must escape single and double quotes with a backslash.

zone Which configuration file to modify. If dir is set, zone is not used. Default : 'system' if no user is specified, else 'global'.


git::config { 'color.ui':
  value => true,

git::config { 'color.ui':
  value => true,
  user  => bar,