git

Configure git via Boxen

Les Aker

halyard

8,619 downloads

6,938 latest version

4.6 quality score

Version information

  • 2.8.4 (latest)
  • 2.8.3
  • 2.8.2
  • 2.8.1
  • 2.8.0
released Dec 30th 2015
This version is compatible with:
  • Darwin

Start using this module

Documentation

halyard/git — version 2.8.4 Dec 30th 2015

puppet-git

Puppet Forge Dependency Status MIT Licensed Build Status

Install and configure git

Changes from upstream

  • Remove unused meta scripts
  • Set up CircleCI tests
  • Switch from puppet-module-data to function bindings
  • Simplify package declaration

Usage

In hiera:

---
git::configdir: "%{::boxen::config::configdir}/git"

git::package: 'boxen/brews/git'

git::credentialhelper: "%{::boxen::config::repodir}/script/boxen-git-credential"
git::global_credentialhelper: "%{boxen::config::home}/bin/boxen-git-credential"
git::global_excludesfile: "%{hiera('git::configdir')}/gitignore"

In your manifest:

include git

git::config::local { 'repo_specific_email':
  ensure => present,
  repo   => '/path/to/my/repo',
  key    => 'user.email',
  value  => 'turnt@example.com'
}

git::config::global { 'user.email':
  value  => 'turnt@example.com'
}

Required Puppet Modules