mode 0o644
end
-package "python-cairo"
-package "python-mapnik"
-package "python-setuptools"
+package %w[
+ python-cairo
+ python-mapnik
+ python-setuptools
+]
python_package "pyotp"
-package "fonts-noto-cjk"
-package "fonts-noto-hinted"
-package "fonts-noto-unhinted"
-package "ttf-unifont"
+package %w[
+ fonts-noto-cjk
+ fonts-noto-hinted
+ fonts-noto-unhinted
+ fonts-hanazono
+ ttf-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 0o644
+ end
+end
directory "/srv/tile.openstreetmap.org/cgi-bin" do
owner "tile"
systemd_service "update-lowzoom@" do
description "Low zoom tile update service for %i layer"
user "tile"
- exec_start "/usr/local/bin/update-lowzoom-%i"
+ exec_start "/bin/bash /usr/local/bin/update-lowzoom-%i"
private_tmp true
private_devices true
private_network true
database "gis"
end
-%w(geography_columns planet_osm_nodes planet_osm_rels planet_osm_ways raster_columns raster_overviews spatial_ref_sys).each do |table|
+postgresql_extension "hstore" do
+ cluster node[:tile][:database][:cluster]
+ database "gis"
+end
+
+%w[geography_columns planet_osm_nodes planet_osm_rels planet_osm_ways raster_columns raster_overviews spatial_ref_sys].each do |table|
postgresql_table table do
cluster node[:tile][:database][:cluster]
database "gis"
end
end
-%w(geometry_columns planet_osm_line planet_osm_point planet_osm_polygon planet_osm_roads).each do |table|
+%w[geometry_columns planet_osm_line planet_osm_point planet_osm_polygon planet_osm_roads].each do |table|
postgresql_table table do
cluster node[:tile][:database][:cluster]
database "gis"
mode 0o755
end
-package "osm2pgsql"
-package "osmosis"
+package %w[
+ osm2pgsql
+ osmosis
+]
-package "ruby"
-package "ruby-dev"
+package %w[
+ ruby
+ ruby-dev
+]
-package "libproj-dev"
-package "libxml2-dev"
+package %w[
+ libproj-dev
+ libxml2-dev
+]
gem_package "proj4rb"
gem_package "libxml-ruby"