diff options
author | Cullum Smith <cullum@sacredheartsc.com> | 2024-11-12 23:50:18 -0500 |
---|---|---|
committer | Cullum Smith <cullum@sacredheartsc.com> | 2024-11-12 23:50:18 -0500 |
commit | 5aa2283f9951b3e035824b54bd0277ebf4394ffa (patch) | |
tree | df93cef70ce1d49576b9a98f165e8dfc6aaa52f7 /files/usr/local/git | |
parent | 6512242bc03acf2bdaa4fea6fcc7fe51c2330f03 (diff) | |
download | infrastructure-5aa2283f9951b3e035824b54bd0277ebf4394ffa.tar.gz |
add gitolite/cgit
Diffstat (limited to 'files/usr/local/git')
-rw-r--r-- | files/usr/local/git/.gitolite.rc.git_server | 28 | ||||
-rw-r--r-- | files/usr/local/git/.gitolite/conf/gitolite.conf.git_server | 11 |
2 files changed, 39 insertions, 0 deletions
diff --git a/files/usr/local/git/.gitolite.rc.git_server b/files/usr/local/git/.gitolite.rc.git_server new file mode 100644 index 0000000..9e86021 --- /dev/null +++ b/files/usr/local/git/.gitolite.rc.git_server @@ -0,0 +1,28 @@ +%RC = ( + UMASK => 0027, + GIT_CONFIG_KEYS => '.*', + LOG_DEST => 'syslog', + LOG_FACILITY => 'daemon', + ROLES => { + READERS => 1, + WRITERS => 1, + }, + ENABLE => [ + 'help', + 'desc', + 'info', + 'perms', + 'writable', + 'fork', + 'D', + 'git-config', + 'gitweb', + 'set-default-roles', + 'upstream', + 'cgit', + ], + GROUPLIST_PGM => '/usr/local/libexec/gitolite-grouplist', + HTTP_ANON_USER => 'nobody', +); + +1; diff --git a/files/usr/local/git/.gitolite/conf/gitolite.conf.git_server b/files/usr/local/git/.gitolite/conf/gitolite.conf.git_server new file mode 100644 index 0000000..c51d21a --- /dev/null +++ b/files/usr/local/git/.gitolite/conf/gitolite.conf.git_server @@ -0,0 +1,11 @@ +repo gitolite-admin + RW+ = @${gitolite_admin_role} + +repo CREATOR/[A-Za-z0-9/_-]+ + C = @${gitolite_admin_role} @${gitolite_access_role} + RW+ = CREATOR + RW = WRITERS + R = READERS + option default.roles-1 = READERS @all + config gitweb.owner = %GL_CREATOR + config gitweb.category = user repositories |