From: Tom Hughes Date: Wed, 10 Jul 2024 17:50:06 +0000 (+0100) Subject: Switch web site to readonly against karm X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/f2e063ccae80b92c17712da609d8d74ffef08ba9?ds=inline Switch web site to readonly against karm --- diff --git a/roles/equinix-ams.rb b/roles/equinix-ams.rb index 7923e09d4..af38d7387 100644 --- a/roles/equinix-ams.rb +++ b/roles/equinix-ams.rb @@ -36,7 +36,7 @@ default_attributes( }, :web => { :fileserver => "ironbelly", - :readonly_database_host => "snap-01.ams.openstreetmap.org", + :readonly_database_host => "karm.ams.openstreetmap.org", :primary_cluster => true } ) diff --git a/roles/web-db.rb b/roles/web-db.rb index c03da5277..3db0cc4a7 100644 --- a/roles/web-db.rb +++ b/roles/web-db.rb @@ -3,6 +3,6 @@ description "Role applied to all servers needing to find the main database" default_attributes( :web => { - :database_host => "snap-01.ams.openstreetmap.org" + :database_host => "karm.ams.openstreetmap.org" } ) diff --git a/roles/web.rb b/roles/web.rb index 594c18f84..b0d9d4b99 100644 --- a/roles/web.rb +++ b/roles/web.rb @@ -16,7 +16,7 @@ default_attributes( :pool_idle_time => 3600 }, :web => { - :status => "online", + :status => "database_readonly", :memcached_servers => %w[spike-06.ams spike-07.ams spike-08.ams] } )