X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/361fe7b2d59cd38452162f1c66f961f9f71ec377..f17b4afc624359d4620211b8b2a7f84ed844449e:/roles/nominatim-master.rb?ds=inline diff --git a/roles/nominatim-master.rb b/roles/nominatim-master.rb index 0fa032677..1961d835c 100644 --- a/roles/nominatim-master.rb +++ b/roles/nominatim-master.rb @@ -3,42 +3,36 @@ description "Role applied to the master nominatim server" default_attributes( :postgresql => { - :versions => ["9.3"], :settings => { :defaults => { - :listen_addresses => "*", :wal_level => "hot_standby", :archive_mode => "on", :archive_command => "/bin/cp %p /data/postgresql-archive/%f", - :max_wal_senders => "1", - :late_authentication_rules => [ - { :database => "replication", :user => "replication", :address => "146.179.159.164/32" } - ] + :max_wal_senders => "5" } } }, :nominatim => { + :state => "master", :enable_backup => true }, :rsyncd => { :modules => { :archive => { :comment => "WAL Archive", - :path => "/data/postgresql-archive", :read_only => true, :write_only => false, :list => false, :uid => "postgres", :gid => "postgres", - :transfer_logging => false, - :hosts_allow => [ - "146.179.159.164" - ] + :transfer_logging => false } } } ) run_list( - "role[nominatim]" + "recipe[rsyncd]", + "recipe[nominatim::master]", + "role[nominatim-base]" )