Added the infra SOPs ported to asciidoc.
This commit is contained in:
parent
8a7f111a12
commit
a0301e30f1
148 changed files with 18575 additions and 17 deletions
55
modules/sysadmin_guide/pages/infra-git-repo.adoc
Normal file
55
modules/sysadmin_guide/pages/infra-git-repo.adoc
Normal file
|
@ -0,0 +1,55 @@
|
|||
= Infrastructure Git Repos
|
||||
|
||||
Setting up an infrastructure git repo - and the push mechanisms for the
|
||||
magicks
|
||||
|
||||
We have a number of git repos (in /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
|
||||
|
||||
Owner::
|
||||
Fedora Infrastructure Team
|
||||
Contact::
|
||||
#fedora-admin, sysadmin-main
|
||||
Location::
|
||||
Phoenix
|
||||
Servers::
|
||||
batcave01.phx2.fedoraproject.org, batcave-comm01.qa.fedoraproject.org
|
||||
|
||||
== Steps
|
||||
|
||||
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:
|
||||
|
||||
....
|
||||
[hooks]
|
||||
# (normallysysadmin-members@fedoraproject.org)
|
||||
mailinglist = emailaddress@yourdomain.org
|
||||
emailprefix =
|
||||
maildomain = fedoraproject.org
|
||||
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/syncgittree.sh w/o inputting a password
|
Loading…
Add table
Add a link
Reference in a new issue