diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-10-11 01:29:05 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-10-11 01:30:11 +0200 |
commit | 404942e3044beda0a3b15c1638bf80a2252ec247 (patch) | |
tree | b671b73c822c5e1f3d58e370177a7a6353e223c7 /manifests | |
parent | Rewrote filter system. (diff) | |
download | cgit-404942e3044beda0a3b15c1638bf80a2252ec247.tar.gz cgit-404942e3044beda0a3b15c1638bf80a2252ec247.tar.xz |
further cleanup.
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index bbd8edb..91800b2 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -6,9 +6,7 @@ class cgit ( String $root_readme_source = "puppet:///modules/${module_name}/root_readme", Optional[String] $root_readme_content = undef, Optional[String] $root_readme_sha256 = undef, - String $about_filter, - String $auth_filter, - String $source_filter, + String $root_readme_extension = '', String $scan_path, Array[String] $clone_url, Boolean $enable_http_clone = false, @@ -72,14 +70,15 @@ class cgit ( { } } + $readme = "${root}/README${root_readme_extension}" if $root_readme_content { - file { "${root}/root_readme": + file { $readme: ensure => file, content => $root_readme_content, * => $chksum, } } else { - file { "${root}/root_readme": + file { $readme: ensure => file, source => $root_readme_source, * => $chksum, |