]> git.openstreetmap.org Git - chef.git/commitdiff
Update osmosis to 0.47.4
authorTom Hughes <tom@compton.nu>
Sun, 12 Apr 2020 18:47:42 +0000 (19:47 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 12 Apr 2020 18:51:43 +0000 (19:51 +0100)
cookbooks/osmosis/attributes/default.rb
cookbooks/osmosis/recipes/default.rb

index 8d4f9a3b6b10b86b3f0b0626e8a8a3112acb4b13..ef45921001270cf1c6cced4fcc22a7fe374ff0bf 100644 (file)
@@ -1,2 +1,2 @@
 # Set the default version
-default[:osmosis][:version] = "0.43.1"
+default[:osmosis][:version] = "0.47.4"
index 6896fcd209d37e98e82ab9096b7fb8dc08f39e5e..4160a9b400521b208117eaac320981e5951b4e06 100644 (file)
@@ -24,8 +24,9 @@ package "default-jre"
 
 cache_dir = Chef::Config[:file_cache_path]
 
-osmosis_package = "osmosis-#{node[:osmosis][:version]}.zip"
-osmosis_directory = "/opt/osmosis-#{node[:osmosis][:version]}"
+osmosis_version = node[:osmosis][:version]
+osmosis_package = "osmosis-#{osmosis_version}.zip"
+osmosis_directory = "/opt/osmosis-#{osmosis_version}"
 
 Dir.glob("#{cache_dir}/osmosis-*.zip").each do |zip|
   next if zip == "#{cache_dir}/#{osmosis_package}"
@@ -44,7 +45,7 @@ end
 
 remote_file "#{cache_dir}/#{osmosis_package}" do
   action :create_if_missing
-  source "https://bretth.dev.openstreetmap.org/osmosis-build/#{osmosis_package}"
+  source "https://github.com/openstreetmap/osmosis/releases/download/#{osmosis_version}/osmosis-#{osmosis_version}.zip"
   owner "root"
   group "root"
   mode 0o644
@@ -57,7 +58,7 @@ execute "#{cache_dir}/#{osmosis_package}" do
   cwd osmosis_directory
   user "root"
   group "root"
-  subscribes :run, "execute[#{cache_dir}/#{osmosis_package}]"
+  subscribes :run, "remote_file[#{cache_dir}/#{osmosis_package}]"
 end
 
 link "/usr/local/bin/osmosis" do