]> git.openstreetmap.org Git - chef.git/blob - roles/db-master.rb
Add wawel, a tile server hosted by cloudferro
[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     :monitor_queries => true,
7     :settings => {
8       :defaults => {
9         :archive_mode => "on",
10         :archive_command => "/usr/local/bin/openstreetmap-wal-g wal-push %p --walg-prevent-wal-overwrite=true",
11         :wal_keep_size => "16384"
12       }
13     }
14   }
15 )
16
17 run_list(
18   "role[db]",
19   "recipe[db::master]",
20   "recipe[rsyncd]"
21 )