passwords = data_bag_item("tilelog", "passwords")
+tilelog_directory = "/opt/tilelog"
tilelog_output_directory = node[:tilelog][:output_directory]
+python_virtualenv tilelog_directory do
+ interpreter "/usr/bin/python3"
+end
+
python_package "tilelog" do
+ python_virtualenv tilelog_directory
python_version "3"
end
recursive true
end
-template "/usr/local/bin/generate-tilelog" do
+template "/usr/local/bin/tilelog" do
source "tilelog.erb"
owner "root"
group "root"
minute "17"
hour "22"
user "www-data"
- command "/usr/local/bin/generate-tilelog"
+ command "/usr/local/bin/tilelog"
mailto "admins@openstreetmap.org"
end
export AWS_SECRET_ACCESS_KEY="<%= @aws_key %>"
export AWS_REGION="eu-west-1"
-nice -n 19 /usr/local/bin/tilelog --date ${DATE} && mv tiles-${DATE}.txt.xz "${OUTDIR}"
+nice -n 19 /opt/tilelog/bin/tilelog --date ${DATE} && mv tiles-${DATE}.txt.xz "${OUTDIR}"