]> git.openstreetmap.org Git - chef.git/commitdiff
Use memcached for the dev apis
authorTom Hughes <tom@compton.nu>
Wed, 23 May 2018 18:07:45 +0000 (19:07 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 23 May 2018 18:19:03 +0000 (19:19 +0100)
cookbooks/dev/metadata.rb
cookbooks/dev/recipes/default.rb

index 56eff35ae4bb1faa327e4a66b72a2cd7e703022b..b5aa8ebaa5de4cec8a364a04bc4c8b96c9dc5c47 100644 (file)
@@ -9,6 +9,7 @@ supports          "ubuntu"
 depends           "apache"
 depends           "passenger"
 depends           "git"
+depends           "memcached"
 depends           "mysql"
 depends           "nodejs"
 depends           "postgresql"
index 187bb6a3fc55af4f7e981a5ed731a3317cf49160..494a0ad0fca02e63d590d1ac48549415ac1a6364 100644 (file)
@@ -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