run git checkout before the rest of the nominatim setup
[chef.git] / cookbooks / nominatim / recipes / master.rb
index 2e0094152c7cfa865420703e3856868f2402b519..d33d7658d6c860facd0611b4ad921c35f28a0fe8 100644 (file)
 # limitations under the License.
 #
 
+include_recipe "git"
+
+git "#{home_directory}/nominatim" do
+  action :checkout
+  repository node[:nominatim][:repository]
+  enable_submodules true
+  user "nominatim"
+  group "nominatim"
+  notifies :run, "execute[compile_nominatim]"
+end
+
 include_recipe "nominatim::base"
 
 passwords = data_bag_item("nominatim", "passwords")
@@ -42,11 +53,3 @@ postgresql_user "replication" do
   replication true
 end
 
-git "#{home_directory}/nominatim" do
-  action :checkout
-  repository node[:nominatim][:repository]
-  enable_submodules true
-  user "nominatim"
-  group "nominatim"
-  notifies :run, "execute[compile_nominatim]"
-end