summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-10-11 02:19:29 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-10-11 02:19:29 +0200
commitd1284f0f15f9ca64c2c54c845085382ff440a3d2 (patch)
tree811abf5ff210d20ea6706fb223afde30fde4404b
parentAdd pre-tags to default root readme. (diff)
downloadcgit-d1284f0f15f9ca64c2c54c845085382ff440a3d2.tar.gz
cgit-d1284f0f15f9ca64c2c54c845085382ff440a3d2.tar.xz
Add file with public repos.
-rw-r--r--manifests/init.pp5
1 files changed, 5 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 942aee8..43be069 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -88,6 +88,11 @@ class cgit (
}
+ file { '/usr/local/var/public-repos':
+ ensure => file,
+ content => ($public_repos << '').join("\n"),
+ }
+
if $manage_server {
if $server_name == undef {