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 | ea76a5d8ea33b5be2e36f756c34244010816badf (patch) | |
tree | ad06bf22402492d6cf62917a1b9cccf8e326cea8 /manifests | |
parent | Minor fixes (diff) | |
download | cgit-ea76a5d8ea33b5be2e36f756c34244010816badf.tar.gz cgit-ea76a5d8ea33b5be2e36f756c34244010816badf.tar.xz |
Move cgit conf to hiera.
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 12 |
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', + } + } |