summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-01-15 09:28:10 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2023-01-15 12:27:55 +0100
commit141d2c06c1c696b23a223119d3958273771412aa (patch)
tree6dbde6853d65e2120367dda952d1620bc7c394ce
parentMove filter name validation to puppet type. (diff)
downloadcgit-141d2c06c1c696b23a223119d3958273771412aa.tar.gz
cgit-141d2c06c1c696b23a223119d3958273771412aa.tar.xz
filter fragment requires file.
A missing file shouldn't be added as a filter. This will cause puppet to error, but leave our configuration in a non-broken state.
-rw-r--r--manifests/filter.pp1
1 files changed, 1 insertions, 0 deletions
diff --git a/manifests/filter.pp b/manifests/filter.pp
index fc95dc6..bcba582 100644
--- a/manifests/filter.pp
+++ b/manifests/filter.pp
@@ -27,5 +27,6 @@ define cgit::filter (
concat::fragment { "cgit config filter ${filtername}":
target => $::cgit::cgitrc,
content => "${filtername}-filter=${type}:${dest}\n",
+ require => File[$dest],
}
}