X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/3c387421427fd91b296afc8466c8308817e9f70b..a627b8b2958a004bc980fb0724cf1962e030b3a5:/cookbooks/tile/recipes/default.rb?ds=inline diff --git a/cookbooks/tile/recipes/default.rb b/cookbooks/tile/recipes/default.rb index 4f60005e7..40039b314 100644 --- a/cookbooks/tile/recipes/default.rb +++ b/cookbooks/tile/recipes/default.rb @@ -25,6 +25,7 @@ include_recipe "nodejs" include_recipe "postgresql" include_recipe "prometheus" include_recipe "python" +include_recipe "ruby" include_recipe "tools" blocks = data_bag_item("tile", "blocks") @@ -163,12 +164,18 @@ python_package "pyotp" do python_version "3" end -package %w[ +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 - ttf-unifont + #{unifont} ] ["NotoSansArabicUI-Regular.ttf", "NotoSansArabicUI-Bold.ttf"].each do |font| @@ -502,15 +509,22 @@ end package %w[ osm2pgsql - ruby osmium-tool pyosmium python3-pyproj ] -gem_package "apachelogregex" -gem_package "file-tail" -gem_package "lru_redux" +gem_package "apachelogregex" do + gem_binary node[:ruby][:gem] +end + +gem_package "file-tail" do + gem_binary node[:ruby][:gem] +end + +gem_package "lru_redux" do + gem_binary node[:ruby][:gem] +end remote_directory "/usr/local/bin" do source "bin"