Revision 5acb8b8a
b/Changelog | ||
---|---|---|
236 | 236 |
- Double escaping fix in machine create wizard images list and machine details |
237 | 237 |
subview. |
238 | 238 |
- Fix image ordering in machine create wizard. |
239 |
- New setting ``UI_SUPPORT_SSH_OS_FAMILY_LIST``. A list of image OS families |
|
240 |
for which ui will enable ssh key injection in machine wizard. |
|
239 | 241 |
|
240 | 242 |
|
241 | 243 |
Pithos |
b/snf-cyclades-app/conf/20-snf-cyclades-app-ui.conf | ||
---|---|---|
189 | 189 |
##Base url for external css fonts. If set to ``None``, no external css fonts |
190 | 190 |
##will be loaded. |
191 | 191 |
#UI_FONTS_BASE_URL = "//fonts.googleapis.com/" |
192 |
# |
|
193 |
## A list of os family names that support ssh public key assignment |
|
194 |
#UI_SUPPORT_SSH_OS_FAMILY_LIST = ['linux', 'openbsd', 'freebsd', 'netbsd'] |
b/snf-cyclades-app/synnefo/ui/static/snf/js/models.js | ||
---|---|---|
552 | 552 |
}, |
553 | 553 |
|
554 | 554 |
_supports_ssh: function() { |
555 |
if (synnefo.config.support_ssh_os_list.indexOf(this.get_os()) > -1) { |
|
555 |
var os_list = synnefo.config.support_ssh_os_list; |
|
556 |
var osfamily_list = synnefo.config.support_ssh_os_family_list; |
|
557 |
|
|
558 |
var os = this.get_os(); |
|
559 |
if (os_list.indexOf(os) > -1) { |
|
556 | 560 |
return true; |
557 | 561 |
} |
558 |
if (this.get_meta('osfamily') == 'linux') { |
|
559 |
return true; |
|
562 |
|
|
563 |
var osfamily = this.get_meta("osfamily"); |
|
564 |
if (osfamily_list.indexOf(osfamily) > -1) { |
|
565 |
return true |
|
560 | 566 |
} |
567 |
|
|
561 | 568 |
return false; |
562 | 569 |
}, |
563 | 570 |
|
b/snf-cyclades-app/synnefo/ui/templates/home.html | ||
---|---|---|
660 | 660 |
synnefo.config.ui_console_url = '{% url ui_machines_console %}'; |
661 | 661 |
synnefo.config.ui_connect_url = '{% url ui_machines_connect %}'; |
662 | 662 |
synnefo.config.support_ssh_os_list = {{ support_ssh_os_list|safe }}; |
663 |
synnefo.config.support_ssh_os_family_list = {{ support_ssh_os_family_list|safe }}; |
|
663 | 664 |
synnefo.config.unknown_os = {{ unknown_os|safe }}; |
664 | 665 |
synnefo.config.os_created_users = {{ os_created_users|safe }}; |
665 | 666 |
synnefo.config.feedback_post_url = {{ feedback_post_url|safe }}; |
b/snf-cyclades-app/synnefo/ui/views.py | ||
---|---|---|
78 | 78 |
getattr(settings, 'UI_IMAGE_DELETED_SIZE_TITLE', '(none)') |
79 | 79 |
|
80 | 80 |
SUPPORT_SSH_OS_LIST = getattr(settings, "UI_SUPPORT_SSH_OS_LIST",) |
81 |
SUPPORT_SSH_OS_FAMILY_LIST = getattr(settings, "UI_SUPPORT_SSH_OS_FAMILY_LIST", |
|
82 |
['linux', 'openbsd', 'freebsd', 'netbsd']) |
|
83 |
|
|
81 | 84 |
OS_CREATED_USERS = getattr(settings, "UI_OS_DEFAULT_USER_MAP") |
82 | 85 |
UNKNOWN_OS = getattr(settings, "UI_UNKNOWN_OS", "unknown") |
83 | 86 |
|
... | ... | |
225 | 228 |
'vm_name_template': json.dumps(VM_NAME_TEMPLATE), |
226 | 229 |
'flavors_disk_templates_info': json.dumps(FLAVORS_DISK_TEMPLATES_INFO), |
227 | 230 |
'support_ssh_os_list': json.dumps(SUPPORT_SSH_OS_LIST), |
231 |
'support_ssh_os_family_list': json.dumps(SUPPORT_SSH_OS_FAMILY_LIST), |
|
228 | 232 |
'unknown_os': json.dumps(UNKNOWN_OS), |
229 | 233 |
'os_created_users': json.dumps(OS_CREATED_USERS), |
230 | 234 |
'userdata_keys_limit': json.dumps(MAX_SSH_KEYS_PER_USER), |
Also available in: Unified diff