]> git.openstreetmap.org Git - chef.git/blob - roles/db-master.rb
Allow replication connections to slave databases
[chef.git] / roles / db-master.rb
1 name "db-master"
2 description "Role applied to all the master database server"
3
4 default_attributes(
5   :postgresql => {
6     :settings => {
7       :defaults => {
8         :archive_mode => "on",
9         :archive_command => "/usr/local/bin/openstreetmap-wal-g wal-push %p --walg-prevent-wal-overwrite=true",
10         :max_replication_slots => "1"
11       }
12     }
13   }
14 )
15
16 run_list(
17   "role[db]",
18   "recipe[db::master]",
19   "recipe[rsyncd]"
20 )