Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / conf / 20-snf-cyclades-app-ui.conf @ 9835a70d

History | View | Annotate | Download (6.2 kB)

1
## -*- coding: utf-8 -*-
2
##
3
## UI settings
4
####################
5
#
6
## base url for ui static files
7
## if not set, defaults to MEDIA_URL + 'snf-<latest_ui_version>/'
8
#UI_MEDIA_URL = '/static/ui/static/snf/'
9
#
10
## UI requests to the API layer time out after that many milliseconds
11
#TIMEOUT = 10 * 1000
12
#
13
## A list of suggested server tags (server metadata keys)
14
#DEFAULT_KEYWORDS = ["OS", "Role", "Location", "Owner"]
15
#
16
## A list of allowed icons for OS Images
17
#IMAGE_ICONS = ["rhel", "ubuntu", "debian", "windows", "gentoo", "archlinux",
18
#               "centos", "fedora", "freebsd", "netbsd", "openbsd", "slackware",
19
#               "sles", "opensuse", "kubuntu"]
20
#
21
## How often should the UI request changes from the API
22
#UI_UPDATE_INTERVAL = 5000
23
#
24
## Milieconds to increase the interval after UI_UPDATE_INTERVAL_INCREASE_AFTER_CALLS_COUNT calls
25
## of recurrent api requests
26
#UI_UPDATE_INTERVAL_INCREASE = UI_UPDATE_INTERVAL / 4
27
#UI_UPDATE_INTERVAL_INCREASE_AFTER_CALLS_COUNT = 4
28
#
29
## Maximum update interval
30
#UI_UPDATE_INTERVAL_MAX = UI_UPDATE_INTERVAL * 3
31
#
32
## Fast update interval
33
#UI_UPDATE_INTERVAL_FAST = UI_UPDATE_INTERVAL / 2
34
#
35
## Miliseconds to remove from the previous server response time used in
36
## consecutive API calls (aligning changes-since attribute).
37
#UI_CHANGES_SINCE_ALIGNMENT = 0
38
#
39
## Cookie name to retrieve authentication data from
40
#UI_AUTH_COOKIE_NAME = '_pithos2_a'
41
#
42
## Flavor options that we provide to the user as predefined
43
## cpu/ram/disk combinations on vm create wizard
44
#VM_CREATE_SUGGESTED_FLAVORS = {
45
#    'small': {
46
#        'cpu': 1,
47
#        'ram': 1024,
48
#        'disk': 20,
49
#        'disk_template': 'drbd'
50
#    },
51
#    'medium': {
52
#        'cpu': 2,
53
#        'ram': 2048,
54
#        'disk': 30,
55
#        'disk_template': 'drbd'
56
#
57
#    },
58
#    'large': {
59
#        'cpu': 4,
60
#        'ram': 4096,
61
#        'disk': 40,
62
#        'disk_template': 'drbd'
63
#
64
#    }
65
#}
66
#
67
## A list of metadata keys to clone from image
68
## to the virtual machine on its creation.
69
#VM_IMAGE_COMMON_METADATA = ["OS", "loginname", "logindomain", "users", "remote"]
70
#
71
## A list of suggested vm roles to display to user on create wizard
72
#VM_CREATE_SUGGESTED_ROLES = ["Database server", "File server", "Mail server", "Web server", "Proxy"]
73
#
74
## Template to be used for suggesting the user a default name for newly created
75
## vms. {0} gets replaced by the image OS value
76
#VM_CREATE_NAME_TPL = "My {0} server"
77
#
78
## Template to use to build vm hostname
79
#UI_VM_HOSTNAME_FORMAT = 'snf-%(id)s.vm.synnefo.org'
80
#
81
## Name/description metadata for the available flavor disk templates
82
## Dict key is the disk_template value as stored in database
83
#UI_FLAVORS_DISK_TEMPLATES_INFO = {
84
#    'drbd': {'name': 'DRBD',
85
#             'description': 'DRBD storage.'},
86
#}
87
#
88
## Override default connect prompt messages. The setting gets appended to the
89
## ui default values so you only need to modify parameters you need to alter.
90
##
91
## Indicative format:
92
## {
93
##    '<browser os1>': {
94
##        '<vm os family1>': ['top message....', 'bottom message'],
95
##        '<vm os family 2>': ['top message....', 'bottom message'],
96
##        'ssh_message': 'ssh %(user)s@%(hostname)s'
97
## }
98
##
99
## you may use the following parameters to format ssh_message:
100
##
101
## * server_id: the database pk of the vm
102
## * ip_address: the ipv4 address of the public vm nic
103
## * hostname: vm hostname
104
## * user: vm username
105
##
106
## you may assign a callable python object to the ssh_message, if so the above
107
## parameters get passed as arguments to the provided object.
108
#UI_CONNECT_PROMPT_MESSAGES = {}
109
#
110
## extend rdp file content. May be a string with format parameters similar to
111
## those used in UI_CONNECT_PROMPT_MESSAGES `ssh_message` or a callable object.
112
#UI_EXTRA_RDP_CONTENT = None
113
#
114
#
115
########################
116
## UI BEHAVIOUR SETTINGS
117
########################
118
#
119
## Whether to increase the time of recurrent requests (networks/vms update) if
120
## window loses its focus
121
#UI_DELAY_ON_BLUR = False
122
#
123
## Whether not visible vm views will update their content if vm changes
124
#UI_UPDATE_HIDDEN_VIEWS = False
125
#
126
## After how many timeouts of reccurent ajax requests to display the timeout
127
## error overlay
128
#UI_SKIP_TIMEOUTS = 1
129
#
130
## Whether UI should display error overlay for all Javascript exceptions
131
#UI_HANDLE_WINDOW_EXCEPTIONS = True
132
#
133
## A list of os names that support ssh public key assignment
134
#UI_SUPPORT_SSH_OS_LIST = ['debian', 'fedora', 'okeanos', 'ubuntu', 'kubuntu',
135
#                          'centos', 'archlinux']
136
#
137
## OS/username map to identify default user name for the specified os
138
#UI_OS_DEFAULT_USER_MAP = {
139
#    'debian':'root', 'fedora': 'root', 'okeanos': 'root',
140
#    'ubuntu': 'root', 'kubuntu': 'root', 'centos': 'root',
141
#    'windows': 'Administrator'
142
#}
143
#
144
###########################
145
## UI NETWORK VIEW SETTINGS
146
###########################
147
#
148
## Available network types for use to choose when creating a private network
149
## If only one set, no select options will be displayed
150
#UI_NETWORK_AVAILABLE_NETWORK_TYPES = {'MAC_FILTERED': 'mac-filtering'}
151
#
152
## Suggested private networks to let the user choose from when creating a private
153
## network with dhcp enabled
154
#UI_NETWORK_AVAILABLE_SUBNETS = ['10.0.0.0/24', '192.168.0.0/24']
155
#
156
## UI will use this setting to find an available network subnet if user requests
157
## automatic subnet selection.
158
#UI_AUTOMATIC_NETWORK_RANGE_FORMAT = "192.168.%d.0/24"
159
#
160
## Whether to display already connected vm's to the network connect overlay
161
#UI_NETWORK_ALLOW_DUPLICATE_VM_NICS = False
162
#
163
## Whether to display destroy action on private networks that contain vms. If
164
## set to True, destroy action will only get displayed if user disconnect all
165
## virtual machines from the network.
166
#UI_NETWORK_STRICT_DESTROY = True
167
#
168
## Whether or not to group public networks nics in a single network view
169
#UI_GROUP_PUBLIC_NETWORKS = True
170
#
171
## The name of the grouped network view
172
#UI_GROUPED_PUBLIC_NETWORK_NAME = 'Internet'
173
#
174
################
175
## UI EXTENSIONS
176
################
177
#
178
## Whether or not UI should display images from the Glance API
179
## If setting is set to False, ui will request images from Compute API
180
#UI_ENABLE_GLANCE = True
181
#
182
## a dict of image owner ids and their associate name
183
## to be displayed on images list
184
#UI_SYSTEM_IMAGES_OWNERS = {
185
#    'admin@synnefo.gr': 'system',
186
#    'images@synnefo.gr': 'system'
187
#}