Use location specific backends for memcache servers
authorTom Hughes <tom@compton.nu>
Mon, 9 May 2016 14:46:12 +0000 (15:46 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 9 May 2016 14:46:12 +0000 (15:46 +0100)
cookbooks/web/recipes/rails.rb

index 632a627cc2d5b692eaaed70a0999866c12006df6..2542edea3f84e6fb39bccdeb2170b0259d9a4530 100644 (file)
@@ -64,7 +64,7 @@ rails_port "www.openstreetmap.org" do
   attachments_dir "/store/rails/attachments"
   log_path "#{node[:web][:log_directory]}/rails.log"
   logstash_path "#{node[:web][:log_directory]}/rails-logstash.log"
-  memcache_servers %w(rails1 rails2 rails3)
+  memcache_servers node[:web][:backends]
   potlatch2_key web_passwords["potlatch2_key"]
   id_key web_passwords["id_key"]
   oauth_key web_passwords["oauth_key"]