run git checkout before the rest of the nominatim setup
authorSarah Hoffmann <lonvia@denofr.de>
Mon, 13 Jul 2015 20:09:01 +0000 (22:09 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 13 Jul 2015 20:09:01 +0000 (22:09 +0200)
cookbooks/nominatim/recipes/base.rb
cookbooks/nominatim/recipes/master.rb
cookbooks/nominatim/recipes/slave.rb

index 88b9cf6..390de61 100644 (file)
@@ -19,7 +19,6 @@
 
 include_recipe "apache::ssl"
 include_recipe "postgresql"
-include_recipe "git"
 
 package "php5"
 package "php5-cli"
index 2e00941..d33d765 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
index d7c7889..6c263ca 100644 (file)
@@ -17,7 +17,7 @@
 # limitations under the License.
 #
 
-include_recipe "nominatim::base"
+include_recipe "git"
 
 home_directory = data_bag_item("accounts", "nominatim")["home"]
 
@@ -28,3 +28,5 @@ git "#{home_directory}/nominatim" do
   group "nominatim"
   notifies :run, "execute[compile_nominatim]"
 end
+
+include_recipe "nominatim::base"