]> git.openstreetmap.org Git - chef.git/blob - roles/nominatim-master.rb
Update carto stylesheet to v2.43.0
[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     :settings => {
7       :defaults => {
8         :wal_level => "hot_standby",
9         :archive_mode => "on",
10         :archive_command => "/bin/cp %p /data/postgresql-archive/%f",
11         :max_wal_senders => "5",
12         :late_authentication_rules => [
13           { :database => "replication", :user => "replication", :address => "146.179.159.164/32" }
14         ]
15       }
16     }
17   },
18   :nominatim => {
19     :enabled => true,
20     :enable_backup => true
21   },
22   :rsyncd => {
23     :modules => {
24       :archive => {
25         :comment => "WAL Archive",
26         :path => "/data/postgresql-archive",
27         :read_only => true,
28         :write_only => false,
29         :list => false,
30         :uid => "postgres",
31         :gid => "postgres",
32         :transfer_logging => false,
33         :hosts_allow => [
34           "146.179.159.164"
35         ]
36       }
37     }
38   }
39 )
40
41 run_list(
42   "role[nominatim]",
43   "recipe[nominatim::master]",
44   "recipe[rsyncd]"
45 )