blocks = data_bag_item("tile", "blocks")
apache_module "alias"
+apache_module "cgi"
apache_module "expires"
apache_module "headers"
apache_module "remoteip"
mode 0755
end
+package "mapnik-utils"
+
node[:tile][:data].each_value do |data|
url = data[:url]
file = "/srv/tile.openstreetmap.org/data/#{File.basename(url)}"
if data[:refresh]
action :create
use_conditional_get true
+ ignore_failure true
else
action :create_if_missing
end
package "osmosis"
package "ruby"
-package "rubygems"
+package "ruby-dev"
+
+if node[:lsb][:release].to_f < 14.04
+ package "rubygems"
+end
package "libproj-dev"
package "libxml2-dev"
gem_package "proj4rb"
gem_package "libxml-ruby"
-gem_package "mmap"
remote_directory "/usr/local/lib/site_ruby" do
source "ruby"