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

37 lines
671 B
Python
Raw Normal View History

2015-05-04 19:52:53 +00:00
from orchestra.contrib.settings import Setting
2014-05-08 16:59:35 +00:00
2015-04-27 14:54:17 +00:00
VPS_TYPES = Setting('VPS_TYPES',
(
('openvz', 'OpenVZ container'),
2020-03-18 06:49:04 +00:00
('lxc', 'LXC container')
),
validators=[Setting.validate_choices]
)
2014-05-08 16:59:35 +00:00
2015-04-27 14:54:17 +00:00
VPS_DEFAULT_TYPE = Setting('VPS_DEFAULT_TYPE',
2020-03-18 06:49:04 +00:00
'lxc',
2015-04-27 14:54:17 +00:00
choices=VPS_TYPES
)
2014-05-08 16:59:35 +00:00
2015-04-27 14:54:17 +00:00
VPS_TEMPLATES = Setting('VPS_TEMPLATES',
(
('debian7', 'Debian 7 - Wheezy'),
2020-03-18 06:49:04 +00:00
('placeholder', 'LXC placeholder')
),
validators=[Setting.validate_choices]
)
2014-05-08 16:59:35 +00:00
2015-04-27 14:54:17 +00:00
VPS_DEFAULT_TEMPLATE = Setting('VPS_DEFAULT_TEMPLATE',
2020-03-18 06:49:04 +00:00
'placeholder',
2015-04-27 14:54:17 +00:00
choices=VPS_TEMPLATES
)
2015-09-21 13:57:15 +00:00
VPS_DEFAULT_VZSET_ARGS = Setting('VPS_DEFAULT_VZSET_ARGS',
('--onboot yes',),
)