From 24310af1d5ff79742861dcd8543a2cfdcf334a91 Mon Sep 17 00:00:00 2001 From: Paul Norman Date: Thu, 29 Aug 2024 17:37:19 -0700 Subject: [PATCH] Add wawel, a tile server hosted by cloudferro --- roles/wawel.rb | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 roles/wawel.rb diff --git a/roles/wawel.rb b/roles/wawel.rb new file mode 100644 index 000000000..e29ac63ec --- /dev/null +++ b/roles/wawel.rb @@ -0,0 +1,40 @@ +name "wawel" +description "Master role applied to wawel" + +default_attributes( + :postgresql => { + :settings => { + :defaults => { + :effective_cache_size => "16GB" + } + } + }, + :sysctl => { + :postgres => { + :comment => "Increase shared memory for postgres", + :parameters => { + "kernel.shmmax" => 9 * 1024 * 1024 * 1024, + "kernel.shmall" => 9 * 1024 * 1024 * 1024 / 4096 + } + } + }, + :tile => { + :database => { + :cluster => "16/main", + :postgis => "3" + }, + :mapnik => "3.1", + :styles => { + :default => { + :tile_directories => [ + { :name => "/store/tiles/default", :min_zoom => 0, :max_zoom => 19 } + ] + } + } + } +) + +run_list( + "role[cloudferro-waw3-2]", + "role[tile]" +) -- 2.39.5