summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp12
1 files changed, 11 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index c1a981b..71ed6db 100644
--- a/manifests/init.pp
+++ b/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',
+ }
+
}