Initial work for packaging .deb

This commit is contained in:
James Cammarata
2013-06-23 15:40:07 -04:00
parent 07657926b9
commit c2a0004c6c
6 changed files with 81 additions and 17 deletions

View File

@@ -0,0 +1,13 @@
[program:ansibleworks-celeryd]
autorestart = true
logfile = /var/log/supervisor/ansibleworks-celeryd.log
stopwaitsecs = 600
log_stdout = true
command = /usr/bin/ansibleworks-manage celeryd -B -l info --autoscale=20,2
user = ansibleworks
autostart = true
directory = /var/lib/ansibleworks
log_stderr = true
logfile_maxbytes = 50MB
logfile_backups = 999

36
config/deb/settings.py Normal file
View File

@@ -0,0 +1,36 @@
ADMINS = (
#('Joe Admin', 'joeadmin@example.com'),
)
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'awx',
'USER': 'awx',
'PASSWORD': 'AWsecret',
'HOST': '',
'PORT': '',
}
}
STATIC_ROOT = '/var/lib/awx/public/static'
PROJECTS_ROOT = '/var/lib/awx/projects'
SECRET_KEY = file('/etc/awx/SECRET_KEY', 'rb').read().strip()
ALLOWED_HOSTS = ['*']
LOGGING = {
'version': 1,
}
SERVER_EMAIL = 'root@localhost'
DEFAULT_FROM_EMAIL = 'webmaster@localhost'
EMAIL_SUBJECT_PREFIX = '[AnsibleWorks] '
EMAIL_HOST = 'localhost'
EMAIL_PORT = 25
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
EMAIL_USE_TLS = False

View File

@@ -32,7 +32,7 @@ LOGGING['handlers']['syslog'] = {
SERVER_EMAIL = 'root@localhost'
DEFAULT_FROM_EMAIL = 'webmaster@localhost'
EMAIL_SUBJECT_PREFIX = '[AWX] '
EMAIL_SUBJECT_PREFIX = '[AnsibleWorks] '
EMAIL_HOST = 'localhost'
EMAIL_PORT = 25