diff options
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/cgit.pp | 37 |
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', + ], + } +} |