include_recipe "imagery"
imagery_site "agri.openstreetmap.org" do
- # aliases ["agri.openstreetmap.org.au"]
+ aliases [ "agri.openstreetmap.org.au" ]
end
imagery_layer "au_ga_agri" do
end
imagery_site "os.openstreetmap.org" do
- # aliases ["os.openstreetmap.org.uk"]
+ aliases [ "os.openstreetmap.org.uk" ]
end
imagery_layer "gb_os_sv_2010_04" do
default_action :create
property :name, String
+property :aliases, [String, Array], :default => []
action :create do
- directory "/srv/imagery/#{name}" do
+ directory "/srv/#{name}" do
owner "root"
group "root"
mode 0755
server {
listen 80;
- server_name <%= @name %>;
+ server_name <%= @name %> a.<%= @name %> b.<%= @name %> c.<%= @name %><% @aliases.each do |alias_name| %> <%= alias_name %><%- end -%>;
# Include site imagery layers
include /srv/imagery/nginx/<%= @name %>/layer-*.conf;