postgresql_version = node[:nominatim][:dbcluster].split("/").first
postgis_version = node[:nominatim][:postgis]
-package "postgis"
package "postgresql-#{postgresql_version}-postgis-#{postgis_version}"
node[:nominatim][:dbadmins].each do |user|
end
end
-if node[:nominatim][:state] == "master" # ~FC023
+if node[:nominatim][:state] == "master"
postgresql_user "replication" do
cluster node[:nominatim][:dbcluster]
password data_bag_item("nominatim", "passwords")["replication"]
libpq-dev
libgeos++-dev
libproj-dev
+ python3-pyosmium
pyosmium
+ python3-psycopg2
]
source_directory = "#{basedir}/nominatim"
:log_file => "#{node[:nominatim][:logdir]}/query.log"
end
-if node[:nominatim][:flatnode_file] # ~FC023
+if node[:nominatim][:flatnode_file]
directory File.dirname(node[:nominatim][:flatnode_file]) do
recursive true
end
end
external_data = [
- "wikipedia_article.sql.bin",
- "wikipedia_redirect.sql.bin",
+ "wikimedia-importance.sql.gz",
"gb_postcode_data.sql.gz"
]
end
end
+systemd_service "apache-nominatim" do
+ service "apache2"
+ dropin "nominatim"
+ tasks_max 12000
+ notifies :restart, "service[apache2]"
+end
+
ssl_certificate "nominatim.openstreetmap.org" do
domains ["nominatim.openstreetmap.org",
"nominatim.osm.org",