variables :cgimap_port => cgimap_port,
:database_port => node[:postgresql][:clusters][:"15/main"][:port],
:database_name => database_name,
- :log_directory => log_directory
+ :log_directory => log_directory,
+ :options => details[:cgimap_options]
end
service "cgimap@#{name}" do
CGIMAP_MAP_NODES"<%= node[:web][:max_number_of_nodes] %>"
CGIMAP_MAX_WAY_NODES="<%= node[:web][:max_number_of_way_nodes] %>"
CGIMAP_MAX_RELATION_MEMBERS="<%= node[:web][:max_number_of_relation_members] %>"
+<% Hash(@options).each do |name, value| -%>
+CGIMAP_<%= name.to_s.upcase %>="<%= value %>"
+<% end -%>
},
:tomh => {
:repository => "https://github.com/tomhughes/openstreetmap-website.git",
- :revision => "next"
+ :revision => "next",
+ :cgimap_repository => "https://github.com/zerebubuth/openstreetmap-cgimap.git",
+ :cgimap_revision => "master",
+ :cgimap_options => {
+ :ratelimit_upload => true
+ }
},
:comments => {
:repository => "https://github.com/ukasiu/openstreetmap-website.git",