From bf8a8b284c17beacf5cd2534e7137946d628fdf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Wed, 29 Dec 2021 21:29:46 +0100 Subject: Move cgit conf to hiera. --- modules/cgit/manifests/init.pp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'modules/cgit/manifests/init.pp') 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', + } + } -- cgit v1.2.3