]> git.openstreetmap.org Git - chef.git/blobdiff - roles/db-backup.rb
imagery: add remainder of os_sv_diff
[chef.git] / roles / db-backup.rb
index 6fab59d23a0007e623088583f0f353305a474817..f713c8058b95e0bbae8dc3ac06c275574723e1d1 100644 (file)
@@ -6,6 +6,20 @@ default_attributes(
     :users => {
       :osmbackup => { :status => :role }
     }
+  },
+  :postgresql => {
+    :settings => {
+      :defaults => {
+        :user_name_maps => {
+          :backup => [
+            { :system => "osmbackup", :postgres => "backup" }
+          ]
+        },
+        :early_authentication_rules => [
+          { :type => "local", :database => "all", :user => "backup", :method => "peer", :options => { :map => "backup" } }
+        ]
+      }
+    }
   }
 )