2013-07-08 21:28:56 +04:00
# {{ ansible_managed }}
2013-04-02 00:04:27 +04:00
# Copyright (c) 2013 AnsibleWorks, Inc.
2013-05-22 03:08:46 +04:00
# All Rights Reserved.
2013-04-09 09:05:55 +04:00
2013-03-14 00:47:58 +04:00
ADMINS = (
# ('Your Name', 'your_email@domain.com'),
)
MANAGERS = ADMINS
2013-07-08 21:28:56 +04:00
# Database settings to use PostgreSQL for development.
2013-03-14 00:47:58 +04:00
DATABASES = {
'default': {
2013-07-08 21:28:56 +04:00
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'awx',
'USER': 'awx',
'PASSWORD': '{{ database_password }}',
'HOST': '',
'PORT': '',
2013-03-14 00:47:58 +04:00
}
}
2013-07-08 21:28:56 +04:00
# Use SQLite for unit tests instead of PostgreSQL.
if len(sys.argv) >= 2 and sys.argv[1] == 'test':
2013-03-19 18:27:14 +04:00
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
2013-07-08 21:28:56 +04:00
'NAME': os.path.join(BASE_DIR, 'awx.sqlite3'),
# Test database cannot be :memory: for celery/inventory tests.
'TEST_NAME': os.path.join(BASE_DIR, 'awx_test.sqlite3'),
2013-03-19 18:27:14 +04:00
}
}
2013-04-19 23:40:08 +04:00
# Absolute filesystem path to the directory to host projects (with playbooks).
2013-07-08 21:28:56 +04:00
# This directory should NOT be web-accessible.
2013-04-19 23:40:08 +04:00
PROJECTS_ROOT = os.path.join(BASE_DIR, 'projects')
2013-03-19 18:27:14 +04:00
2013-03-14 00:47:58 +04:00
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# On Unix systems, a value of None will cause Django to use the same
# timezone as the operating system.
# If running in a Windows environment this must be set to the same as your
# system time zone.
TIME_ZONE = 'America/New_York'
# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'en-us'
# SECURITY WARNING: keep the secret key used in production secret!
# Hardcoded values can leak through source control. Consider loading
# the secret key from an environment variable or a file instead.
SECRET_KEY = 'p7z7g1ql4%6+(6nlebb6hdk7sd^&fnjpal308%n%+p^_e6vo1y'
2013-07-08 21:28:56 +04:00
# HTTP headers and meta keys to search to determine remote host name or IP. Add
# additional items to this list, such as "HTTP_X_FORWARDED_FOR", if behind a
# reverse proxy.
REMOTE_HOST_HEADERS = ['REMOTE_ADDR', 'REMOTE_HOST']
2013-03-14 00:47:58 +04:00
# Email address that error messages come from.
SERVER_EMAIL = 'root@localhost'
# The email backend to use. For possible shortcuts see django.core.mail.
# The default is to use the SMTP backend.
# Third-party backends can be specified by providing a Python path
# to a module that defines an EmailBackend class.
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
# Host for sending email.
EMAIL_HOST = 'localhost'
# Port for sending email.
EMAIL_PORT = 25
# Optional SMTP authentication information for EMAIL_HOST.
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
EMAIL_USE_TLS = False
# Default email address to use for various automated correspondence from
# the site managers.
DEFAULT_FROM_EMAIL = 'webmaster@localhost'
# Subject-line prefix for email messages send with django.core.mail.mail_admins
# or ...mail_managers. Make sure to include the trailing space.
2013-07-08 21:28:56 +04:00
EMAIL_SUBJECT_PREFIX = '[AWX] '
2013-07-15 22:26:57 +04:00
# Enable logging to syslog. Setting level to ERROR captures 500 errors,
# WARNING also logs 4xx responses.
LOGGING['handlers']['syslog'] = {
'level': 'WARNING',
'filters': [],
'class': 'logging.handlers.SysLogHandler',
'address': '/dev/log',
'facility': 'local0',
'formatter': 'simple',
}
# Enable the following lines to also log to a file.
#LOGGING['handlers']['file'] = {
# 'class': 'logging.FileHandler',
# 'filename': os.path.join(BASE_DIR, 'awx.log'),
# 'formatter': 'simple',
#}