From 59924d35a40da58ad6cf24cb7050333924ce886c Mon Sep 17 00:00:00 2001 From: Chaoyi Zha Date: Thu, 11 Jun 2015 23:23:37 +0000 Subject: [PATCH] Update mote role, removing memcached dependency in favor of JSON store --- roles/mote/tasks/main.yml | 1 - roles/mote/templates/mote_config.py | 8 +++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/roles/mote/tasks/main.yml b/roles/mote/tasks/main.yml index adf7f54db3..e53404141f 100644 --- a/roles/mote/tasks/main.yml +++ b/roles/mote/tasks/main.yml @@ -21,7 +21,6 @@ - config notify: - restart apache - - restart memcached - name: apply selinux type to static files file: > diff --git a/roles/mote/templates/mote_config.py b/roles/mote/templates/mote_config.py index 8af7c72170..70d8527436 100644 --- a/roles/mote/templates/mote_config.py +++ b/roles/mote/templates/mote_config.py @@ -29,11 +29,17 @@ Development Configuration enable_debug = True app_port = 5000 +app_host = "127.0.0.1" ''' General Configuration ''' -app_host = "127.0.0.1" admin_groups = ["sysadmin-mote"] memcached_ip = "127.0.0.1:11211" +# memcached must be installed for this feature +use_memcached = False # Use a memcached store for greater performance + +# JSON cache store location +json_cache_location = "/tmp/mote/cache.json" +