ansible/roles/mote/templates/config.py

59 lines
1.6 KiB
Python
Raw Normal View History

2015-06-10 00:21:49 +00:00
'''
Crawler Configuration
'''
log_endpoint = "/srv/web/meetbot"
#log_endpoint = "/home/user/mote/test_data/meetbot"
# Fedora has a "teams" folder which contains
# logs from meetings started with a certain team name
# for instance, `#startmeeting famna` will save in "/teams/famna"
# Folders not in "teams" reflect the channel name of the meeting
log_team_folder = "teams"
# Directories to ignore in crawling the logs.
# These folders are ignored. The "meetbot" folder is
# an infinite loop on Fedora's meetbot instance.
ignore_dir = "meetbot"
# Location where raw logs/minutes are stored (remote location)
2015-06-12 13:58:17 +00:00
{% if env == 'staging' %}
2015-06-12 14:09:41 +00:00
meetbot_prefix = "http://meetbot-raw.stg.fedoraproject.org"
2015-06-12 13:58:17 +00:00
{% else %}
2015-06-12 14:09:41 +00:00
meetbot_prefix = "http://meetbot-raw.fedoraproject.org"
2015-06-12 13:58:17 +00:00
{% endif %}
2015-06-10 00:21:49 +00:00
# Time (in seconds) after which the log/meeting cache expires
cache_expire_time = 60 * 60 * 1
'''
Development Configuration
'''
2015-06-12 13:58:17 +00:00
## Don't turn this on in Fedora Infrastructure as it might allow remote execution
## of arbitrary code.
##enable_debug = True
#app_port = 5000
#app_host = "127.0.0.1"
2015-06-10 00:21:49 +00:00
'''
General Configuration
'''
admin_groups = ["sysadmin-mote"]
2015-06-12 13:58:17 +00:00
# memcached must be installed for this feature
2015-06-12 13:58:17 +00:00
memcached_ip = "memcached01:11211"
use_memcached = False # Use a memcached store for greater performance
# JSON cache store location
json_cache_location = "/var/cache/httpd/mote/cache.json"
# Use group/name mappings fetched from GitHub
use_mappings_github = True
# If use_mappings_github is False, set alternate path
name_mappings_path = "/usr/share/mote/name_mappings.json"
category_mappings_path = "/usr/share/mote/category_mappings.json"