diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-12-29 21:29:46 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-12-29 21:35:57 +0100 |
commit | bf8a8b284c17beacf5cd2534e7137946d628fdf7 (patch) | |
tree | 26512e6efb19bf52b48d090c95bd4138417d290b /modules/cgit/manifests/init.pp | |
parent | Add nginx and letsencrypt modules. (diff) | |
download | webdav_server-bf8a8b284c17beacf5cd2534e7137946d628fdf7.tar.gz webdav_server-bf8a8b284c17beacf5cd2534e7137946d628fdf7.tar.xz |
Move cgit conf to hiera.
Diffstat (limited to 'modules/cgit/manifests/init.pp')
-rw-r--r-- | modules/cgit/manifests/init.pp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/modules/cgit/manifests/init.pp b/modules/cgit/manifests/init.pp index c1a981b..71ed6db 100644 --- a/modules/cgit/manifests/init.pp +++ b/modules/cgit/manifests/init.pp @@ -8,6 +8,10 @@ class cgit ( String $source_filter, String $scan_path, Array[String] $clone_url, + Array[String] $public_repos = [], + Array[Struct[{ + name => String, + pass => String }]] $users = [], ) { # TODO figure out where CSS comes from @@ -48,7 +52,7 @@ class cgit ( ensure => directory, } - [$about_filter, $source_filter, $auth_filter].each |$f| { + [$about_filter, $source_filter].each |$f| { file { "${filterpath}/${f}": ensure => file, source => "puppet:///modules/cgit/filters/${f}", @@ -59,4 +63,10 @@ class cgit ( } } + file { "${filterpath}/${auth_filter}": + ensure => file, + content => epp("cgit/${auth_filter}.epp"), + mode => '0444', + } + } |