From 141d2c06c1c696b23a223119d3958273771412aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Sun, 15 Jan 2023 09:28:10 +0100 Subject: 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. --- manifests/filter.pp | 1 + 1 file changed, 1 insertion(+) 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], } } -- cgit v1.2.3