]> git.openstreetmap.org Git - chef.git/blobdiff - roles/nominatim-master.rb
imagery: next gb_os_sv_diff layer available
[chef.git] / roles / nominatim-master.rb
index 0fa0326771f7ba0983e932cc3dc482fea2edd905..85baaf89258e5d590b606df4f715eafe5a081771 100644 (file)
@@ -3,14 +3,12 @@ description "Role applied to the master nominatim server"
 
 default_attributes(
   :postgresql => {
-    :versions => ["9.3"],
     :settings => {
       :defaults => {
-        :listen_addresses => "*",
         :wal_level => "hot_standby",
         :archive_mode => "on",
         :archive_command => "/bin/cp %p /data/postgresql-archive/%f",
-        :max_wal_senders => "1",
+        :max_wal_senders => "5",
         :late_authentication_rules => [
           { :database => "replication", :user => "replication", :address => "146.179.159.164/32" }
         ]
@@ -18,6 +16,7 @@ default_attributes(
     }
   },
   :nominatim => {
+    :enabled => true,
     :enable_backup => true
   },
   :rsyncd => {
@@ -40,5 +39,7 @@ default_attributes(
 )
 
 run_list(
-  "role[nominatim]"
+  "role[nominatim]",
+  "recipe[nominatim::master]",
+  "recipe[rsyncd]"
 )