Project

General

Profile

« Previous | Next » 

Revision bd877dec

Added by Jan Vansteenkiste over 12 years ago

Added puppet docs to all classes

View differences:

manifests/init.pp
# =Class: git
#
# Sets up requirements for git. See git::repo for more information on how to
# use this module.
#
class git {
include git::install
}
manifests/install.pp
# = Class: git::install
#
# Installs required packages for git.
#
#
class git::install {
require git::params
manifests/params.pp
# = Class: git::params
#
# Configure how the puppet git module behaves
#
# == Parameters:
#
# $bin:: Path to git. Defaults to /usr/bin/git.
#
# $package:: Override the name of the git package(s) to include.
#
# == Usage:
#
# Example: Override the path to the git binary.
#
# class {'git::params':
# bin => '/usr/local/bin/git',
# }
#
class git::params (
$bin = '/usr/bin/git',
$package = undef
manifests/repo.pp
# = Definition: git::repo
#
# == Parameters:
#
# $target:: Target folder. Required.
#
# $bare:: Create a bare repository. Defaults to false.
#
# $source:: Source to clone from. If not specified, no remote will be used.
#
# $user:: Owner of the repository. Defaults to root.
#
# == Usage:
#
# git::repo {'mygit':
# target => '/home/user/puppet-git',
# source => 'git://github.com/theforeman/puppet-git.git',
# user => 'user',
# }
#
define git::repo (
$target,
$bare = false,

Also available in: Unified diff