Infrastructure Git Repos

Setting up an infrastructure git repo - and the push mechanisms for the magicks

We have a number of git repos (in /srv/git on batcave) that manage files for ansible, our docs, our common host info database and our kickstarts. This is a doc on how to setup a new one of these, if it is needed.

Contact Information


Fedora Infrastructure Team


#fedora-admin, sysadmin-main





Create the bare repo:

make $git_dir
setfacl -m d:g:$yourgroup:rwx -m d:g:$othergroup:rwx  \
 -m g:$yourgroup:rwx -m g:$othergroup:rwx $git_dir

cd $git_dir
git init --bare

edit up config - add these lines to the bottom:

# (
mailinglist =
emailprefix =
maildomain =
reposource = /path/to/this/dir
repodest = /path/to/where/you/want/the/files/dumped

edit up description - make it something useful:

cd hooks
rm -f *.sample
cp hooks from /git/infra-docs/hooks/ on batcave01 to this path

modify sudoers to allow users in whatever groups can commit to this repo can run /usr/local/bin/ w/o inputting a password