X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/b890ca2b63073cca67e0f58620a05d2c28504c91..448f89a6142d061d54b8ad9f85ee652689e28b1d:/roles/db-backup.rb?ds=sidebyside 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" } } + ] + } + } } )