From 9b197c3908f4fe9fe8dec55a9a0345f53b6e228e Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Mon, 5 Aug 2013 22:39:24 +0100 Subject: [PATCH] Tile: add node fqdn to index.html to help with debugging end user issues --- cookbooks/tile/recipes/default.rb | 7 +++++++ .../html/index.html => templates/default/index.html.erb} | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) rename cookbooks/tile/{files/default/html/index.html => templates/default/index.html.erb} (85%) diff --git a/cookbooks/tile/recipes/default.rb b/cookbooks/tile/recipes/default.rb index 14d81f139..2e17ac58b 100644 --- a/cookbooks/tile/recipes/default.rb +++ b/cookbooks/tile/recipes/default.rb @@ -97,6 +97,13 @@ remote_directory "/srv/tile.openstreetmap.org/html" do files_mode 0644 end +template "/srv/tile.openstreetmap.org/html/index.html" do + source "index.html.erb" + owner "tile" + group "tile" + mode 0644 +end + package "python-cairo" package "python-mapnik" diff --git a/cookbooks/tile/files/default/html/index.html b/cookbooks/tile/templates/default/index.html.erb similarity index 85% rename from cookbooks/tile/files/default/html/index.html rename to cookbooks/tile/templates/default/index.html.erb index c24e848ac..b4fba0d05 100644 --- a/cookbooks/tile/files/default/html/index.html +++ b/cookbooks/tile/templates/default/index.html.erb @@ -3,12 +3,13 @@ tile.openstreetmap.org + -You've reached the OpenStreetMap.org tile server.
+You've reached the OpenStreetMap.org tile server. (<%= node['fqdn'] %>)
If you are a user...
You probably want OpenStreetMap itself.
-- 2.43.2