- Overview - What is the git module?
- Module Description - What does the module do?
- Setup - The basics of getting started with git
- Usage - Configuration options and additional functionality
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
Simple module that can install git or gitosis
This module installs the git revision control system on a target node. It does not manage a git server or any associated services; it simply ensures a bare minimum set of features (e.g. just a package) to use git.
- Package['git']
The specifics managed by the module may vary depending on the platform.
Simply include the git
class.
include git
git::configs:
user.name: 'test'
user.email: 'test@example.com'
core.filemode:
value: false
scope: system
If using the flat config syntax, options common to all items can be set:
git::configs:
core.filemode: false
git::configs_defaults:
scope: system
include git::subtree
git::config { 'user.name':
value => 'John Doe',
}
git::config { 'user.email':
value => 'john.doe@example.com',
}
git
: Installs the git client package.gitosis
: Installs the gitosis package. No configurationsubtree
: Installs and configures git-subtree for git 1.7 and up.
git::config
: Set git global configuration for the user running puppet, for the specified$user
or for the system.
git_exec_path
: Path to the directory containing allgit-*
commands.git_version
: Version of git that is installed. Undefined if not installed.
This module is known to work with the following operating system families:
- RedHat 5, 6
- Debian 6.0.7 or newer
- Ubuntu 12.04 or newer
Puppet Labs modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. We can’t access the huge number of platforms and myriad of hardware, software, and deployment configurations that Puppet is intended to serve.
We want to keep it as easy as possible to contribute changes so that our modules work in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.
You can read the complete module contribution guide on the Puppet Labs wiki.