Skip to content
Snippets Groups Projects
Commit 04fe028c authored by Jelle van der Waa's avatar Jelle van der Waa :construction:
Browse files

archwiki: enable memcached by default and make ram configurable

Introduce a variable to set the memcached memory size.
parent fd6fda9d
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,7 @@ archwiki_question_answer_file: '/srv/http/archwiki/registration-question-answer.
archwiki_socket: '/run/php-fpm/archwiki.socket'
archwiki_memcached_socket: '/run/memcached/archwiki.sock'
archwiki_memcached_memory: 2048
archwiki_db: 'archwiki'
archwiki_db_host: 'localhost'
......
......@@ -112,7 +112,7 @@
service: name=archwiki-question-updater.service state=started
- name: start and enable archwiki memcached
service: name=archwiki-memcached.service state=started
service: name=archwiki-memcached.service enabled=yes state=started
- name: ensure question answer file exists and set permissions
file: state=file path="{{archwiki_question_answer_file}}" owner=root group=root mode=0644
......@@ -5,7 +5,7 @@ After=network.target
[Service]
User={{ archwiki_user }}
Group=memcached
ExecStart=/usr/bin/memcached -s {{ archwiki_memcached_socket }} -m 512 -o modern
ExecStart=/usr/bin/memcached -s {{ archwiki_memcached_socket }} -m {{ archwiki_memcached_memory }} -o modern
Restart=always
NoNewPrivileges=yes
PrivateTmp=yes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment