]> git.openstreetmap.org Git - chef.git/blob - roles/nominatim-master.rb
Require postgres 9.3 on poldi and pummelzacken
[chef.git] / roles / nominatim-master.rb
1 name "nominatim-master"
2 description "Role applied to the master nominatim server"
3
4 default_attributes(
5   :postgresql => {
6     :versions => ["9.3"],
7     :settings => {
8       :defaults => {
9         :wal_level => "hot_standby",
10         :archive_mode => "on",
11         :archive_command => "/bin/cp %p /data/postgresql-archive/%f",
12         :max_wal_senders => "5",
13         :late_authentication_rules => [
14           { :database => "replication", :user => "replication", :address => "146.179.159.164/32" }
15         ]
16       }
17     }
18   },
19   :nominatim => {
20     :enabled => true,
21     :enable_backup => true
22   },
23   :rsyncd => {
24     :modules => {
25       :archive => {
26         :comment => "WAL Archive",
27         :path => "/data/postgresql-archive",
28         :read_only => true,
29         :write_only => false,
30         :list => false,
31         :uid => "postgres",
32         :gid => "postgres",
33         :transfer_logging => false,
34         :hosts_allow => [
35           "146.179.159.164"
36         ]
37       }
38     }
39   }
40 )
41
42 run_list(
43   "role[nominatim]",
44   "recipe[nominatim::master]",
45   "recipe[rsyncd]"
46 )