From: Tom Hughes Date: Wed, 23 May 2018 18:07:45 +0000 (+0100) Subject: Use memcached for the dev apis X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/acaa192f0952528cf347dad8668b9ebdbdfe9f4c Use memcached for the dev apis --- diff --git a/cookbooks/dev/metadata.rb b/cookbooks/dev/metadata.rb index 56eff35ae..b5aa8ebaa 100644 --- a/cookbooks/dev/metadata.rb +++ b/cookbooks/dev/metadata.rb @@ -9,6 +9,7 @@ supports "ubuntu" depends "apache" depends "passenger" depends "git" +depends "memcached" depends "mysql" depends "nodejs" depends "postgresql" diff --git a/cookbooks/dev/recipes/default.rb b/cookbooks/dev/recipes/default.rb index 187bb6a3f..494a0ad0f 100644 --- a/cookbooks/dev/recipes/default.rb +++ b/cookbooks/dev/recipes/default.rb @@ -23,6 +23,7 @@ require "securerandom" include_recipe "apache" include_recipe "passenger" include_recipe "git" +include_recipe "memcached" include_recipe "mysql" include_recipe "nodejs" include_recipe "postgresql" @@ -228,6 +229,7 @@ if node[:postgresql][:clusters][:"9.5/main"] database_port node[:postgresql][:clusters][:"9.5/main"][:port] database_name database_name database_username "apis" + memcache_servers ["127.0.0.1"] run_migrations true end