]> git.openstreetmap.org Git - chef.git/commitdiff
Enable overwrite protection for WAL archiving
authorTom Hughes <tom@compton.nu>
Tue, 12 Apr 2022 23:05:48 +0000 (00:05 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 12 Apr 2022 23:05:48 +0000 (00:05 +0100)
roles/db-master.rb

index 117c18ebd8aa3adabfe4be2a86b48a7aef037cf3..5e3f16f3f28c2741c04b4e6b2ca213ef56d50d80 100644 (file)
@@ -7,7 +7,7 @@ default_attributes(
       :defaults => {
         :wal_level => "logical",
         :archive_mode => "on",
-        :archive_command => "/usr/local/bin/openstreetmap-wal-g wal-push %p",
+        :archive_command => "/usr/local/bin/openstreetmap-wal-g wal-push %p --walg-prevent-wal-overwrite=true",
         :max_wal_senders => "10",
         :max_replication_slots => "1",
         :late_authentication_rules => [