Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / conf / 20-snf-cyclades-app-ui.conf @ c2e41963

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
## Name/description metadata for the available flavor disk templates
79
## Dict key is the disk_template value as stored in database
80
#UI_FLAVORS_DISK_TEMPLATES_INFO = {
81
#    'drbd': {'name': 'DRBD',
82
#             'description': 'DRBD storage.'},
83
#}
84
#
85
## Override default connect prompt messages. The setting gets appended to the
86
## ui default values so you only need to modify parameters you need to alter.
87
##
88
## Indicative format:
89
## {
90
##    '<browser os1>': {
91
##        '<vm os family1>': ['top message....', 'bottom message'],
92
##        '<vm os family 2>': ['top message....', 'bottom message'],
93
##        'ssh_message': 'ssh %(user)s@%(hostname)s'
94
## }
95
##
96
## you may use the following parameters to format ssh_message:
97
##
98
## * server_id: the database pk of the vm
99
## * ip_address: the ipv4 address of the public vm nic
100
## * hostname: vm hostname
101
## * user: vm username
102
##
103
## you may assign a callable python object to the ssh_message, if so the above
104
## parameters get passed as arguments to the provided object.
105
#UI_CONNECT_PROMPT_MESSAGES = {}
106
#
107
## extend rdp file content. May be a string with format parameters similar to
108
## those used in UI_CONNECT_PROMPT_MESSAGES `ssh_message` or a callable object.
109
#UI_EXTRA_RDP_CONTENT = None
110
#
111
#
112
########################
113
## UI BEHAVIOUR SETTINGS
114
########################
115
#
116
## Whether to increase the time of recurrent requests (networks/vms update) if
117
## window loses its focus
118
#UI_DELAY_ON_BLUR = False
119
#
120
## Whether not visible vm views will update their content if vm changes
121
#UI_UPDATE_HIDDEN_VIEWS = False
122
#
123
## After how many timeouts of reccurent ajax requests to display the timeout
124
## error overlay
125
#UI_SKIP_TIMEOUTS = 1
126
#
127
## Whether UI should display error overlay for all Javascript exceptions
128
#UI_HANDLE_WINDOW_EXCEPTIONS = True
129
#
130
## A list of os names that support ssh public key assignment
131
#UI_SUPPORT_SSH_OS_LIST = ['debian', 'fedora', 'okeanos', 'ubuntu', 'kubuntu',
132
#                          'centos', 'archlinux']
133
#
134
## OS/username map to identify default user name for the specified os
135
#UI_OS_DEFAULT_USER_MAP = {
136
#    'debian':'root', 'fedora': 'root', 'okeanos': 'root',
137
#    'ubuntu': 'root', 'kubuntu': 'root', 'centos': 'root',
138
#    'windows': 'Administrator'
139
#}
140
#
141
###########################
142
## UI NETWORK VIEW SETTINGS
143
###########################
144
#
145
## Available network types for use to choose when creating a private network
146
## If only one set, no select options will be displayed
147
#UI_NETWORK_AVAILABLE_NETWORK_TYPES = {'MAC_FILTERED': 'mac-filtering'}
148
#
149
## Suggested private networks to let the user choose from when creating a private
150
## network with dhcp enabled
151
#UI_NETWORK_AVAILABLE_SUBNETS = ['10.0.0.0/24', '192.168.0.0/24']
152
#
153
## UI will use this setting to find an available network subnet if user requests
154
## automatic subnet selection.
155
#UI_AUTOMATIC_NETWORK_RANGE_FORMAT = "192.168.%d.0/24"
156
#
157
## Whether to display already connected vm's to the network connect overlay
158
#UI_NETWORK_ALLOW_DUPLICATE_VM_NICS = False
159
#
160
## Whether to display destroy action on private networks that contain vms. If
161
## set to True, destroy action will only get displayed if user disconnect all
162
## virtual machines from the network.
163
#UI_NETWORK_STRICT_DESTROY = True
164
#
165
## Whether or not to group public networks nics in a single network view
166
#UI_GROUP_PUBLIC_NETWORKS = True
167
#
168
## The name of the grouped network view
169
#UI_GROUPED_PUBLIC_NETWORK_NAME = 'Internet'
170
#
171
################
172
## UI EXTENSIONS
173
################
174
#
175
## Whether or not UI should display images from the Glance API
176
## If setting is set to False, ui will request images from Compute API
177
#UI_ENABLE_GLANCE = True
178
#
179
## a dict of image owner ids and their associate name
180
## to be displayed on images list
181
#UI_SYSTEM_IMAGES_OWNERS = {
182
#    'admin@synnefo.gr': 'system',
183
#    'images@synnefo.gr': 'system'
184
#}
185
#
186
## Message to display for vms with empty fqdn value
187
#UI_NO_FQDN_MESSAGE = 'No available FQDN'