aboutsummaryrefslogtreecommitdiff
path: root/files/usr/local/git
diff options
context:
space:
mode:
authorCullum Smith <cullum@sacredheartsc.com>2024-11-12 23:50:18 -0500
committerCullum Smith <cullum@sacredheartsc.com>2024-11-12 23:50:18 -0500
commit5aa2283f9951b3e035824b54bd0277ebf4394ffa (patch)
treedf93cef70ce1d49576b9a98f165e8dfc6aaa52f7 /files/usr/local/git
parent6512242bc03acf2bdaa4fea6fcc7fe51c2330f03 (diff)
downloadinfrastructure-5aa2283f9951b3e035824b54bd0277ebf4394ffa.tar.gz
add gitolite/cgit
Diffstat (limited to 'files/usr/local/git')
-rw-r--r--files/usr/local/git/.gitolite.rc.git_server28
-rw-r--r--files/usr/local/git/.gitolite/conf/gitolite.conf.git_server11
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