git::clientgit::serverxinetd service and enable it on boot,
git service and enable it on boot,
/git/ directory for both the root of the git-daemon server daemon, and to enable pushing over ssh://server/git/reponame/.
/usr/local/bin/git_init_script, to the node, to enable repositories to be created from within puppet, using the git::repository definition. See also Section 9.5.1, “Customizing git_init_script”.
git::clonegit::clone type performs exactly what it describes. It clones a repository given a source location and, optionally, a target directory. Possible parameters include
false
cwd) in which the cloned repository is supposed to end up.
/srv/git/
real_name attribute allows you to specify the real name of the tree without creating conflicts between two different equally named git repositories (to clone).
git::clone will take the repository source url and the name of the directory to clone to. When cloning a git repository called 'puppet-module-git' for example, which needs to end up as /var/lib/puppet/modules/git/ maybe, setting real_name => "git" will cause git::clone to clone the 'puppet-module-git' repository into the 'git' directory below localtree.
branch.
false, or any available branch in the git repository.
false
git::pullcwd) the pull is performed in. Note that the name (or real_name, if specified) of the resource is supposed to be the sub-directory of localtree. The actual git pull is then performed in $localtree/$name/, or $localtree/$real_name/ if real_name is specified.
real_name attribute allows you to specify the real name of the tree without creating conflicts between two different equally named git repositories (to pull from).
git::pull will navigate into the directory $localtree/$real_name/, instead of the default $localtree/$name/.
git::pull first reset the repository in order to avoid conflicts between any local changes that may not have been committed, and remote changes. Any changes to the local repository that have not been committed will be undone, except for files that are not tracked within the git repository.
git::reset resource also performs a git::clean, unless clean is set to false.
true, false
true
git::pull first clean the repository (using git::clean) in order to avoid conflicts between any local changes that may not have been committed, and remote changes. Any changes to the local repository that have not been committed will be undone, except for files that are not tracked within the git repository.
true, false
true
git::pull to perform a tracking git checkout of the branch if necessary.
false, or any existing branch
false
git::pull depends on a successful git::clone and will perform a git::clone if the local clone has not already been performed.
git::resetcwd) the reset is performed in. Note that the name (or real_name, if specified) of the resource is supposed to be the sub-directory of localtree. The actual git reset is then performed in $localtree/$name/, or $localtree/$real_name/ if real_name is specified.
real_name attribute allows you to specify the real name of the tree without creating conflicts between two different equally named git repositories (to reset).
git::cleancwd) the clean is performed in. Note that the name (or real_name, if specified) of the resource is supposed to be the sub-directory of localtree. The actual git clean is then performed in $localtree/$name/, or $localtree/$real_name/ if real_name is specified.
real_name attribute allows you to specify the real name of the tree without creating conflicts between two different equally named git repositories (to clean).
git::repositorypublictrue, false.
false
sharedfind /path/to/repo -type f -exec chmod g+w {} \;
find /path/to/repo -type d -exec chmod g+ws {} \;
true, false.
false
localtreelocaltree. See also prefix.
/srv/git/
owner$owner exists, git::repository will create it.
root
groupgit::repository type definition also ensures that this group exists on the system, but adds no members to the group.
root
symlink_prefix/git/ directory. See also prefix, and Section 9.6.1.1, “Using the symlink_prefix attribute”
false
prefix$prefix-$name/ instead of $name/. See also symlink_prefix, and Section 9.6.1.2, “Using the prefix attribute”
false
real_namegit::repository type. Particularly useful when creating more then one git::repository with name "webserver", since the Git::Repository["webserver"] resource can only be created once.
false
recipientsfalse
descriptionfalse