]> git.openstreetmap.org Git - chef.git/blobdiff - roles/db-slave.rb
Make katla the database master
[chef.git] / roles / db-slave.rb
index cc49870d928cf9e6d67b0832abfcdaf7f25fd319..dd8df0870d1f5fc3c97069003162de76cb185226 100644 (file)
@@ -3,7 +3,7 @@ description "Role applied to all slave database servers"
 
 default_attributes(
   :postgresql => {
-    :versions => ["9.1"],
+    :versions => ["9.5"],
     :settings => {
       :defaults => {
         :hot_standby => "on",
@@ -15,7 +15,7 @@ default_attributes(
           :user => "replication",
           :passwords => { :bag => "db", :item => "passwords" }
         },
-        :restore_command => "/usr/bin/rsync katla.ic.openstreetmap.org::archive/%f %p"
+        :restore_command => "/usr/local/bin/openstreetmap-wal-e --terse wal-fetch %f %p"
       }
     }
   }