Version information
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
Add this module to your Puppetfile:
mod 'thekevjames-git', '1.4.2'
Learn more about managing modules with a PuppetfileDocumentation
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
CHANGELOG
1.4.2
- bugfix: use global pylintrc in pre-commit hook
1.4.1
- bugfix: allow usage of multiple utilities
1.4.0
- feature: add git utilities: git-forest, git-rank-contributors, git-wtf
1.3.2
- feature: ensure !/.config folder exists
1.3.1
- feature: parameterize difftool for non-hiera
1.3.0
- feature: git::mergetool -> git::difftool (now configures difftool as well!)
- compatibility: compatible with neovim (use difftool: nvimdiff).
1.2.1
- bugfix: fix XDG_CONFIG_HOME pathing
1.2.0
- feature: use XDG_CONFIG_HOME
- compatibility: improve package compatibility by using ensure_packages
1.1.2
- feature: add $tar parameter to ::git
1.1.1
- feature: allow configuration of tar binary location
1.1.0
- feature: add hub tool
1.0.0
- initial release
Dependencies
- puppetlabs/stdlib (>= 4.2.0 < 5.0.0)