]> git.openstreetmap.org Git - chef.git/blob - roles/db-master.rb
Drop unused brightbox-ruby-ng repository from ridley
[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     :versions => ["9.5"],
7     :settings => {
8       :defaults => {
9         :wal_level => "hot_standby",
10         :archive_mode => "on",
11         :archive_command => "/usr/local/bin/openstreetmap-wal-e --terse wal-push %p",
12         :max_wal_senders => "3",
13         :late_authentication_rules => [
14           { :database => "replication", :user => "replication", :address => "10.0.48.50/32" },
15           { :database => "replication", :user => "replication", :address => "10.0.48.5/32" },
16           { :database => "replication", :user => "replication", :address => "10.0.0.10/32" },
17           { :database => "replication", :user => "replication", :address => "10.0.32.40/32" }
18         ]
19       }
20     }
21   }
22 )
23
24 run_list(
25   "role[db]",
26   "recipe[db::master]",
27   "recipe[rsyncd]"
28 )