]> git.openstreetmap.org Git - chef.git/commitdiff
Spin up memcached on the web frontends
authorTom Hughes <tom@compton.nu>
Wed, 9 Sep 2020 18:20:38 +0000 (19:20 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 9 Sep 2020 18:20:38 +0000 (19:20 +0100)
cookbooks/web/recipes/frontend.rb
roles/web-frontend.rb

index cb712d458a5e2c82ccc3050a3836c9abee9a2abb..8104304d93f50b9c6a11ec6e100ab2a0578df2ce 100644 (file)
@@ -17,6 +17,9 @@
 # limitations under the License.
 #
 
+node.default[:memcached][:ip_address] = node.internal_ipaddress
+
+include_recipe "memcached"
 include_recipe "apache"
 include_recipe "web::rails"
 include_recipe "web::cgimap"
index 3ecca30ff085b385f7782e3be0dabf4b13b9fd81..2a316491a07e6cbe1c37a54e90eb8fd3fdecae38 100644 (file)
@@ -21,6 +21,9 @@ default_attributes(
       ]
     }
   },
+  :memcached => {
+    :memory_limit => 4096
+  },
   :passenger => {
     :max_pool_size => 50
   },