mirror of
https://github.com/ansible/awx.git
synced 2026-02-18 11:40:05 -03:30
Initial work for packaging .deb
This commit is contained in:
13
config/awx_supervisor.conf
Normal file
13
config/awx_supervisor.conf
Normal 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
36
config/deb/settings.py
Normal 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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user