X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/b890ca2b63073cca67e0f58620a05d2c28504c91..3ed0e55b250219194e551a50e068ddeb4103fbf6:/roles/db-backup.rb diff --git a/roles/db-backup.rb b/roles/db-backup.rb index 6fab59d23..f713c8058 100644 --- a/roles/db-backup.rb +++ b/roles/db-backup.rb @@ -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" } } + ] + } + } } )