From: Paul Norman Date: Wed, 3 Aug 2022 08:28:44 +0000 (-0700) Subject: Update to osm-carto v5.6.0 X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/8fc909af185e93f6014d3edc9fe01be643c239c1 Update to osm-carto v5.6.0 --- diff --git a/cookbooks/tile/recipes/default.rb b/cookbooks/tile/recipes/default.rb index 4de4200bc..36c318569 100644 --- a/cookbooks/tile/recipes/default.rb +++ b/cookbooks/tile/recipes/default.rb @@ -165,30 +165,6 @@ python_package "pyotp" do python_version "3" end -unifont = if node[:lsb][:release].to_f < 22.04 - "ttf-unifont" - else - "fonts-unifont" - end - -package %W[ - fonts-noto-cjk - fonts-noto-hinted - fonts-noto-unhinted - fonts-hanazono - #{unifont} -] - -["NotoSansArabicUI-Regular.ttf", "NotoSansArabicUI-Bold.ttf"].each do |font| - remote_file "/usr/share/fonts/truetype/noto/#{font}" do - action :create_if_missing - source "https://github.com/googlei18n/noto-fonts/raw/master/hinted/#{font}" - owner "root" - group "root" - mode "644" - end -end - directory "/srv/tile.openstreetmap.org/cgi-bin" do owner "tile" group "tile" @@ -386,6 +362,21 @@ node[:tile][:styles].each do |name, details| group "tile" end + link "#{style_directory}/fonts" do + to "/srv/tile.openstreetmap.org/fonts" + owner "tile" + group "tile" + end + + execute "#{style_directory}/fonts" do + action :nothing + command "scripts/get-fonts.sh" + cwd style_directory + user "tile" + group "tile" + subscribes :run, "git[#{style_directory}]" + end + execute "#{style_directory}/project.mml" do action :nothing command "carto -a 3.0.0 project.mml > project.xml" diff --git a/roles/tile.rb b/roles/tile.rb index ea8b27daf..c188be8d5 100644 --- a/roles/tile.rb +++ b/roles/tile.rb @@ -104,7 +104,7 @@ default_attributes( :styles => { :default => { :repository => "https://github.com/gravitystorm/openstreetmap-carto.git", - :revision => "v5.5.1", + :revision => "v5.6.0", :max_zoom => 19 } }