Ruby Puppet Shell
Latest commit a8a3891 Mar 25, 2018
Permalink
Failed to load latest commit information.
data
files
manifests
script
spec
.gitignore
.travis.yml
CONTRIBUTING.md
Gemfile
Gemfile.lock
LICENSE
README.md
hiera.yaml

README.md

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  => 'turnt@example.com'
}

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

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.