]> git.openstreetmap.org Git - chef.git/blob - roles/db-slave.rb
put pummelzacken in production mode
[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.5"],
7     :settings => {
8       :defaults => {
9         :hot_standby => "on",
10         :hot_standby_feedback => "on",
11         :standby_mode => "on",
12         :primary_conninfo => {
13           :host => "karm.ams.openstreetmap.org",
14           :port => "5432",
15           :user => "replication",
16           :passwords => { :bag => "db", :item => "passwords" }
17         },
18         :restore_command => "/usr/local/bin/openstreetmap-wal-e --terse wal-fetch %f %p"
19       }
20     }
21   }
22 )
23
24 run_list(
25   "role[db]",
26   "recipe[db::slave]"
27 )