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