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 d33d7658d6c860facd0611b4ad921c35f28a0fe8..341f3d664dc1befe1ffd11941e8d1ece02da21f5 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
-