]> git.openstreetmap.org Git - chef.git/blob - roles/db-slave.rb
Update carto stylesheet to v2.41.0
[chef.git] / roles / db-slave.rb
1 name "db-slave"
2 description "Role applied to all slave database servers"
3
4 default_attributes(
5   :postgresql => {
6     :versions => ["9.1"],
7     :settings => {
8       :defaults => {
9         :hot_standby => "on",
10         :hot_standby_feedback => "on",
11         :standby_mode => "on",
12         :primary_conninfo => {
13           :host => "katla.bm.openstreetmap.org",
14           :port => "5432",
15           :user => "replication",
16           :passwords => { :bag => "db", :item => "passwords" }
17         },
18         :restore_command => "/usr/bin/rsync katla.bm.openstreetmap.org::archive/%f %p"
19       }
20     }
21   }
22 )
23
24 run_list(
25   "role[db]",
26   "recipe[db::slave]"
27 )