Fix rubocop warnings
authorTom Hughes <tom@compton.nu>
Mon, 13 Jul 2015 21:29:51 +0000 (22:29 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 13 Jul 2015 21:29:51 +0000 (22:29 +0100)
cookbooks/nominatim/recipes/master.rb

index d33d765..341f3d6 100644 (file)
 
 include_recipe "git"
 
+passwords = data_bag_item("nominatim", "passwords")
+database_cluster = node[:nominatim][:database][:cluster]
+home_directory = data_bag_item("accounts", "nominatim")["home"]
+
 git "#{home_directory}/nominatim" do
   action :checkout
   repository node[:nominatim][:repository]
@@ -30,10 +34,6 @@ end
 
 include_recipe "nominatim::base"
 
-passwords = data_bag_item("nominatim", "passwords")
-database_cluster = node[:nominatim][:database][:cluster]
-home_directory = data_bag_item("accounts", "nominatim")["home"]
-
 superusers = %w(tomh lonvia twain nominatim)
 
 superusers.each do |user|
@@ -52,4 +52,3 @@ postgresql_user "replication" do
   password passwords["replication"]
   replication true
 end
-