From 7df29e7a7c5bfcddea82e9fbb403c33c8c51a5c6 Mon Sep 17 00:00:00 2001 From: Greg Price Date: Thu, 8 Feb 2018 18:10:14 -0800 Subject: [PATCH] puppet: Only use those "modern" options when on xenial. On trusty, we of course have an older version -- 1.4.14 -- and it is not so modern, so this just gives an error. --- puppet/zulip/templates/memcached.conf.template.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/puppet/zulip/templates/memcached.conf.template.erb b/puppet/zulip/templates/memcached.conf.template.erb index 0ec0551bd3..066f2de110 100644 --- a/puppet/zulip/templates/memcached.conf.template.erb +++ b/puppet/zulip/templates/memcached.conf.template.erb @@ -34,8 +34,10 @@ logfile /var/log/memcached.log # it's listening on a firewalled interface. -l 127.0.0.1 +<% if scope["zulip::base::release_name"] == "xenial" -%> # Use "modern" features. -o slab_reassign,slab_automove,lru_crawler,lru_maintainer,maxconns_fast,hash_algorithm=murmur3 +<% end -%> # Limit the number of simultaneous incoming connections. The daemon default is 1024 # -c 1024