]> git.openstreetmap.org Git - chef.git/blob - roles/db-backup.rb
Revert "Update ridgeback configuration for squid 3"
[chef.git] / roles / db-backup.rb
1 name "db-backup"
2 description "Role applied to the server responsible for database backups"
3
4 default_attributes(
5   :accounts => {
6     :users => {
7       :osmbackup => { :status => :role }
8     }
9   },
10   :postgresql => {
11     :settings => {
12       :defaults => {
13         :user_name_maps => {
14           :backup => [
15             { :system => "osmbackup", :postgres => "backup" }
16           ]
17         },
18         :early_authentication_rules => [
19           { :type => "local", :database => "all", :user => "backup", :method => "peer", :options => { :map => "backup" } }
20         ]
21       }
22     }
23   }
24 )
25
26 run_list(
27   "recipe[db::backup]"
28 )