Statistics
| Branch: | Tag: | Revision:

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

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