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

38 lines
826 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
2015-04-26 13:53:00 +00:00
from orchestra.settings import Setting
2014-05-08 16:59:35 +00:00
2015-04-26 13:53:00 +00:00
ORCHESTRATION_OS_CHOICES = Setting('ORCHESTRATION_OS_CHOICES', (
2014-05-08 16:59:35 +00:00
('LINUX', "Linux"),
))
2014-10-10 17:17:20 +00:00
2015-04-26 13:53:00 +00:00
ORCHESTRATION_DEFAULT_OS = Setting('ORCHESTRATION_DEFAULT_OS', 'LINUX',
choices=ORCHESTRATION_OS_CHOICES)
2014-05-08 16:59:35 +00:00
2014-10-10 17:17:20 +00:00
2015-04-26 13:53:00 +00:00
ORCHESTRATION_SSH_KEY_PATH = Setting('ORCHESTRATION_SSH_KEY_PATH',
2014-05-08 16:59:35 +00:00
path.join(path.expanduser('~'), '.ssh/id_rsa'))
2014-10-10 17:17:20 +00:00
2015-04-26 13:53:00 +00:00
ORCHESTRATION_ROUTER = Setting('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
2015-04-26 13:53:00 +00:00
ORCHESTRATION_TEMP_SCRIPT_PATH = Setting('ORCHESTRATION_TEMP_SCRIPT_PATH',
2014-05-08 16:59:35 +00:00
'/dev/shm'
)
2015-04-07 15:14:49 +00:00
2015-04-26 13:53:00 +00:00
ORCHESTRATION_DISABLE_EXECUTION = Setting('ORCHESTRATION_DISABLE_EXECUTION',
2015-04-07 15:14:49 +00:00
False
)
2015-04-20 14:23:10 +00:00
2015-04-26 13:53:00 +00:00
ORCHESTRATION_BACKEND_CLEANUP_DELTA = Setting('ORCHESTRATION_BACKEND_CLEANUP_DELTA',
2015-04-23 19:46:23 +00:00
timedelta(days=15)
2015-04-20 14:23:10 +00:00
)