1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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',
],
}
}
|