From f112f43b937ca13f56744945e623bafc03b5715f Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Apr 10 2020 16:40:59 +0000 Subject: Wiki: give memcached more memory and security - double memory - set AppArmor profile to enforce mode - https://github.com/memcached/memcached/issues/629 already done by lrupp on the server, this commit updates salt accordingly --- diff --git a/salt/profile/wiki/files/memcached.apparmor b/salt/profile/wiki/files/memcached.apparmor index 3e273f8..e7b5ba8 100644 --- a/salt/profile/wiki/files/memcached.apparmor +++ b/salt/profile/wiki/files/memcached.apparmor @@ -14,7 +14,7 @@ #include -profile memcached /usr/sbin/memcached flags=(complain) { +profile memcached /usr/sbin/memcached { #include #include diff --git a/salt/profile/wiki/memcached.sls b/salt/profile/wiki/memcached.sls index 072d43a..b77b5a5 100644 --- a/salt/profile/wiki/memcached.sls +++ b/salt/profile/wiki/memcached.sls @@ -9,6 +9,6 @@ memcached: /etc/sysconfig/memcached: file.replace: - pattern: ^MEMCACHED_PARAMS=.*$ - - repl: MEMCACHED_PARAMS="-l 127.0.0.1 -m 2048" + - repl: MEMCACHED_PARAMS="-l 127.0.0.1 -m 4096" - listen_in: - service: memcached