summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-01-15 12:22:18 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2023-01-16 22:29:54 +0100
commitb2a55381e55eee535958ebe1a914228eba433719 (patch)
tree1d055140086849038874bf6a06cfd93c7445c5dd
parentAdd nginx userdir module. (diff)
downloadprofiles-b2a55381e55eee535958ebe1a914228eba433719.tar.gz
profiles-b2a55381e55eee535958ebe1a914228eba433719.tar.xz
Introduce cgit profile.
-rw-r--r--manifests/cgit.pp37
1 files changed, 37 insertions, 0 deletions
diff --git a/manifests/cgit.pp b/manifests/cgit.pp
new file mode 100644
index 0000000..b4ffc71
--- /dev/null
+++ b/manifests/cgit.pp
@@ -0,0 +1,37 @@
+class profiles::cgit (
+) {
+ $filters = {
+ 'about' => {
+ source => 'https://git.hornquist.se/cgit-filters/plain/hugo-pre.sh',
+ },
+ 'auth' => {
+ type => 'lua',
+ source => [
+ 'https://git.hornquist.se/cgit-filters/plain/hugo-authentication.lua',
+ 'puppet:///modules/cgit/filters/auth-deny-all.lua',
+ ],
+ },
+ 'source' => {
+ source => 'puppet:///modules/cgit/filters/highlight.sh',
+ },
+ }
+
+ include ::profiles::certificate
+ letsencrypt::domain { 'git.hornquist.se':
+ cert_name => $profiles::certificate::cert_name,
+ }
+
+ class { '::cgit':
+ root_title => 'Hörnquist Git Repositories',
+ root_desc => 'ᛏᚨᚾᛞᛖᛋ᛫ᛖᚾᛞᚨᛋᛏ᛫ᛗᛟᛏ᛫ᛚᚨᛞᚨᚾᛋ᛫ᛈᛚᚨᚾ',
+ scan_path => '/home/git/git',
+ filters => $filters,
+ manage_server => 'nginx',
+ server_name => 'git.hornquist.se',
+ root_readme_source => 'https://wiki.hornquist.se/gitserver-documentation.html',
+ clone_url => [
+ 'https://git.hornquist.se/$CGIT_REPO_URL.git',
+ 'ssh://git@git.hornquist.se:git/$CGIT_REPO_URL.git',
+ ],
+ }
+}