]> git.openstreetmap.org Git - chef.git/commitdiff
imagery: add mapserv v8 required config file
authorGrant Slater <github@firefishy.com>
Mon, 2 Dec 2024 14:45:48 +0000 (14:45 +0000)
committerGrant Slater <github@firefishy.com>
Mon, 2 Dec 2024 14:45:48 +0000 (14:45 +0000)
cookbooks/imagery/recipes/default.rb
cookbooks/imagery/templates/default/mapserver.conf.erb [new file with mode: 0644]

index 3c04dd8a36934b9d70b38b3e91df3bfbe4ede8a0..7c1a1f88cff78fe9cc71df3ab959a507eb137b79 100644 (file)
@@ -50,6 +50,13 @@ package %w[
   unzip
 ]
 
+template "/etc/mapserver.conf" do
+  source "mapserver.conf.erb"
+  owner "root"
+  group "root"
+  mode "644"
+end
+
 directory "/srv/imagery/mapserver" do
   owner "root"
   group "root"
diff --git a/cookbooks/imagery/templates/default/mapserver.conf.erb b/cookbooks/imagery/templates/default/mapserver.conf.erb
new file mode 100644 (file)
index 0000000..9758ffb
--- /dev/null
@@ -0,0 +1,5 @@
+CONFIG
+  ENV
+    MS_MAP_PATTERN "^/srv/imagery/mapserver/"
+  END
+END