From: Tom Hughes Date: Thu, 26 Sep 2024 19:56:19 +0000 (+0100) Subject: Switch web site to readonly against karm X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/968ffb7b7c28a0673554aba399ec55549dc6a41c?ds=sidebyside Switch web site to readonly against karm --- diff --git a/roles/equinix-ams.rb b/roles/equinix-ams.rb index 4043e0dd7..03e654d76 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] } )