aboutsummaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-05-15 20:16:14 +0800
committerAaron LI <aly@aaronly.me>2018-05-15 20:16:14 +0800
commitbbfac4101eaaa27a053560cb9cadfe5e807c12da (patch)
treed7dd1336d62d23d3e7770d46ac3775044d2f73fd /roles
parentc179b57bcc9c3f6b01bcf589b76204de43571022 (diff)
downloadansible-dfly-vps-bbfac4101eaaa27a053560cb9cadfe5e807c12da.tar.bz2
git: configure gitolite with cgit
Diffstat (limited to 'roles')
-rw-r--r--roles/git/files/gitolite.rc2
-rw-r--r--roles/git/templates/cgit/cgitrc.j25
2 files changed, 5 insertions, 2 deletions
diff --git a/roles/git/files/gitolite.rc b/roles/git/files/gitolite.rc
index e862cdc..085c9ea 100644
--- a/roles/git/files/gitolite.rc
+++ b/roles/git/files/gitolite.rc
@@ -17,7 +17,7 @@
UMASK => 0077,
# look for "git-config" in the documentation
- GIT_CONFIG_KEYS => '',
+ GIT_CONFIG_KEYS => 'gitweb\..*',
# comment out if you don't need all the extra detail in the logfile
LOG_EXTRA => 1,
diff --git a/roles/git/templates/cgit/cgitrc.j2 b/roles/git/templates/cgit/cgitrc.j2
index f0d83fc..da5f33f 100644
--- a/roles/git/templates/cgit/cgitrc.j2
+++ b/roles/git/templates/cgit/cgitrc.j2
@@ -128,5 +128,8 @@ readme=:install
# NOTE: only the global settings before this directive will be
# applied to each repository.
-scan-path={{ git.user.home }}/{{ git.public_dir }}
+project-list={{ git.user.home }}/projects.list
+scan-path={{ git.user.home }}/repositories
+
+# EOF