django-orchestra-test/orchestra/contrib/orchestration/settings.py

37 lines
852 B
Python
Raw Normal View History

2015-04-20 14:23:10 +00:00
from datetime import timedelta
2014-05-08 16:59:35 +00:00
from os import path
from django.conf import settings
ORCHESTRATION_OS_CHOICES = getattr(settings, 'ORCHESTRATION_OS_CHOICES', (
('LINUX', "Linux"),
))
2014-10-10 17:17:20 +00:00
2014-05-08 16:59:35 +00:00
ORCHESTRATION_DEFAULT_OS = getattr(settings, 'ORCHESTRATION_DEFAULT_OS', 'LINUX')
2014-10-10 17:17:20 +00:00
2014-05-08 16:59:35 +00:00
ORCHESTRATION_SSH_KEY_PATH = getattr(settings, 'ORCHESTRATION_SSH_KEY_PATH',
path.join(path.expanduser('~'), '.ssh/id_rsa'))
2014-10-10 17:17:20 +00:00
2014-05-08 16:59:35 +00:00
ORCHESTRATION_ROUTER = getattr(settings, 'ORCHESTRATION_ROUTER',
2015-04-05 10:46:24 +00:00
'orchestra.contrib.orchestration.models.Route'
2014-05-08 16:59:35 +00:00
)
2014-10-10 17:17:20 +00:00
2014-05-08 16:59:35 +00:00
ORCHESTRATION_TEMP_SCRIPT_PATH = getattr(settings, 'ORCHESTRATION_TEMP_SCRIPT_PATH',
'/dev/shm'
)
2015-04-07 15:14:49 +00:00
ORCHESTRATION_DISABLE_EXECUTION = getattr(settings, 'ORCHESTRATION_DISABLE_EXECUTION',
False
)
2015-04-20 14:23:10 +00:00
ORCHESTRATION_BACKEND_CLEANUP_DELTA = getattr(settings, 'ORCHESTRATION_BACKEND_CLEANUP_DELTA',
timedelta(days=40)
)