Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / conf / 20-snf-cyclades-app-ui.conf @ 02f0cf8a

History | View | Annotate | Download (6.8 kB)

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