Forge Home

12,310 downloads

7,818 latest version

4.3 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.4.2 (latest)
  • 1.4.1
  • 1.4.0
  • 1.3.2
  • 1.3.1
  • 1.3.0
  • 1.2.1
  • 1.2.0
  • 1.1.2
  • 1.1.1
  • 1.1.0
  • 1.0.0
released May 15th 2016
This version is compatible with:
  • Puppet Enterprise >= 3.7.0 < 2015.4.0
  • Puppet >= 3.0.0 < 5.0.0
  • , , , , , , , , , ,

Start using this module

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

Add this module to your Puppetfile:

mod 'thekevjames-git', '1.4.2'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

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

Manually install this module globally with Puppet module tool:

puppet module install thekevjames-git --version 1.4.2

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.

Download

Documentation

thekevjames/git — version 1.4.2 May 15th 2016

puppet-git

An opinionated Puppet Module to install and manage Git.

puppet-git is available on the Puppet Forge.

Usage

Simply

include ::git

to make sure git is installed, or

class { '::git::user':
    home     => '/home/kevin',
    fullname => 'Kevin James',
    email    => 'KevinJames@thekev.in',
}

to configure git settings.

You can also install the Hub tool with

include ::git::hub

Other popular git subcommands can be installed with

include ::git::utilities::forest  # https://www.mankier.com/1/git-forest
include ::git::utilities::rank_contributors  # http://git-wt-commit.rubyforge.org/
include ::git::utilities::wtf  # http://git-wt-commit.rubyforge.org/

Configuration

In addition to the above value set for git::user, you can also use hiera to override the following defaults:

git::conflictstyle: diff3
git::browser: google-chrome
git::difftool: vimdiff
git::editor: vim
git::pager: less -FRX

git::packages: git
git::tar: /bin/tar

git::hub::dependencies: curl
git::hub::url: https://github.com/github/hub/releases/download/v2.2.3/hub-linux-amd64-2.2.3.tgz