Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

boxen/puppet-git

Repository files navigation

Git Puppet Module for Boxen

Build Status

Install Git, a stupid content tracker.

Usage

include git

git::config::local { 'repo_specific_email':
  ensure => present,
  repo   => '/path/to/my/repo',
  key    => 'user.email',
  value  => '[email protected]'
}

git::config::global { 'user.email':
  value  => '[email protected]'
}

Required Puppet Modules

  • boxen
  • homebrew
  • ini_setting

Development

Write code. Run script/cibuild to test it. Check the script directory for other useful tools.

Hiera configuration

The following variables may be automatically overridden with Hiera:

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

git::package: 'boxen/brews/git'
git::version: '1.8.4-boxen2'

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"

It is required that you include ripienaar/puppet-module-data in your boxen project, as this module now ships with many pre-defined configurations in the data/ directory. With this module included, those definitions will be automatically loaded, but can be overridden easily in your own hierarchy.

You can also use JSON if your Hiera is configured for that.