imagery_site "agri.openstreetmap.org" do
# aliases [ "agri.openstreetmap.org.au" ]
+ git_repository "https://github.com/Firefishy/osm-imagery-agri-site.git"
end
imagery_layer "au_ga_agri" do
imagery_site "hampshire.aerial.openstreetmap.org.uk" do
# aliases
+ git_repository "https://github.com/Firefishy/osm-imagery-hampshire-aerial-site.git"
end
imagery_layer "gb_hampshire_aerial_rgb" do
imagery_site "os.openstreetmap.org" do
aliases ["os.openstreetmap.org.uk"]
+ git_repository "https://github.com/Firefishy/osm-imagery-os-site.git"
end
imagery_layer "gb_os_sv_2010_04" do
imagery_site "surrey.aerial.openstreetmap.org.uk" do
# aliases
+ git_repository "https://github.com/Firefishy/osm-imagery-surrey-aerial-site.git"
end
imagery_layer "gb_surrey_aerial" do
property :name, String
property :aliases, [String, Array], :default => []
+property :git_repository, String, :default => ["https://github.com/Firefishy/osm-imagery-default.git"]
action :create do
- directory "/srv/#{name}" do
- owner "root"
+ git "/srv/#{name}" do
+ action :sync
+ repository "#{git_repository}"
+ revision "master"
+ enable_submodules true
+ retries 3
+ user "root"
group "root"
- mode 0755
end
nginx_site name do