X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/b890ca2b63073cca67e0f58620a05d2c28504c91..ae1cc374c68e1626b180717b87532a7ecb4c6c2b:/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" } } + ] + } + } } )