]> git.openstreetmap.org Git - chef.git/blob - roles/nominatim-slave.rb
Merge remote-tracking branch 'github/pull/79'
[chef.git] / roles / nominatim-slave.rb
1 name "nominatim-slave"
2 description "Role applied to all slave nominatim servers"
3
4 default_attributes(
5   :postgresql => {
6     :settings => {
7       :defaults => {
8         :hot_standby => "on",
9         :hot_standby_feedback => "on",
10         :standby_mode => "on",
11         :primary_conninfo => {
12           :host => "pummelzacken.ucl.openstreetmap.org",
13           :port => "5432",
14           :user => "replication",
15           :passwords => { :bag => "nominatim", :item => "passwords" }
16         },
17         :restore_command => "/usr/bin/rsync pummelzacken.ucl.openstreetmap.org::archive/%f %p"
18       }
19     }
20   },
21   :nominatim => {
22     :enable_backup => false
23   }
24 )
25
26 run_list(
27   "role[nominatim]",
28   "recipe[nominatim::slave]"
29 )