3 # DO NOT EDIT - This file is being maintained by Chef
8 <% node[:tile][:styles].each_key do |name| -%>
9 "/srv/tile.openstreetmap.org/tiles/<%= name %>",
16 expiredTime = Time.new(2000, 1, 1)
18 Dir.glob("/var/lib/replicate/expire-queue/changes-*.txt").sort.each do |f|
19 File.open(f, "r") do |file|
21 z, x, y = line.split("/")
30 hash.push(((x & 0xf) << 4) | (y & 0xf))
36 tileName = "#{z}/#{hash[4]}/#{hash[3]}/#{hash[2]}/#{hash[1]}/#{hash[0]}.meta"
38 tileDirs.each do |tileDir|
39 if File.exist?("#{tileDir}/#{tileName}")
40 FileUtils.touch("#{tileDir}/#{tileName}", :mtime => expiredTime)
42 tilesExpired = tilesExpired + 1
44 tilesIgnored = tilesIgnored + 1
53 puts "Meta tiles expired: #{tilesExpired}"
54 puts "Meta tiles not present: #{tilesIgnored}"