From b2a55381e55eee535958ebe1a914228eba433719 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Sun, 15 Jan 2023 12:22:18 +0100 Subject: Introduce cgit profile. --- manifests/cgit.pp | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 manifests/cgit.pp (limited to 'manifests') 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', + ], + } +} -- cgit v1.2.3