]> git.openstreetmap.org Git - chef.git/blobdiff - roles/db-slave.rb
Switch postgres replication to use WAL-E
[chef.git] / roles / db-slave.rb
index dbcfc2095e77134a60f1009fe2a95f1051d8224e..3f7fa44f2724a99b2419907e277e07974a53c5dc 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 karm.ic.openstreetmap.org::archive/%f %p"
+        :restore_command => "/usr/local/bin/openstreetmap-wal-e --terse wal-fetch %f %p"
       }
     }
   }