Statistics
| Branch: | Tag: | Revision:

root / settings.d / 20-api.conf @ 746c6bf4

History | View | Annotate | Download (3.1 kB)

1
# -*- coding: utf-8 -*-
2

    
3
# Copyright 2011 GRNET S.A. All rights reserved.
4
# 
5
# Redistribution and use in source and binary forms, with or
6
# without modification, are permitted provided that the following
7
# conditions are met:
8
# 
9
#   1. Redistributions of source code must retain the above
10
#      copyright notice, this list of conditions and the following
11
#      disclaimer.
12
# 
13
#   2. Redistributions in binary form must reproduce the above
14
#      copyright notice, this list of conditions and the following
15
#      disclaimer in the documentation and/or other materials
16
#      provided with the distribution.
17
# 
18
# THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
19
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
22
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
25
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
26
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
28
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29
# POSSIBILITY OF SUCH DAMAGE.
30
# 
31
# The views and conclusions contained in the software and
32
# documentation are those of the authors and should not be
33
# interpreted as representing official policies, either expressed
34
# or implied, of GRNET S.A.
35
# 
36
# -*- coding: utf-8 -*-
37

    
38
#
39
# API configuration
40
#####################
41

    
42
# The API implementation needs to accept and return absolute references
43
# to its resources. Thus, it needs to know its public URL.
44
API_ROOT_URL = APP_INSTALL_URL + '/api'
45

    
46
# The API will return HTTP Bad Request if the ?changes-since
47
# parameter refers to a point in time more than POLL_LIMIT seconds ago.
48
POLL_LIMIT = 3600
49

    
50
#
51
# Network Configuration
52
#
53

    
54
# Synnefo assigns this link id to NICs connected on the public network.
55
# An IP pool should be associated with this link by the Ganeti administrator.
56
GANETI_PUBLIC_LINK = 'snf_public'
57
# This link id is assigned to NICs that should be isolated from anything else
58
# (e.g., right before the NIC gets deleted).
59
# This value is also hardcoded in a fixture in db/fixtures/initial_data.json.
60
GANETI_NULL_LINK = 'snf_null'
61
# Public IPv6: A /64 IPv6 prefix for autoconfiguration with EUI-64 addresses
62
PUBLIC_IPV6_PREFIX = "2001:db8::/64"
63
#
64
# The pool of private network links to use is
65
# $GANETI_LINK_PREFIX{1..$GANETI_MAX_LINK_NUMBER}.
66
#
67
# The prefix to use for private network links.
68
GANETI_LINK_PREFIX = 'prv'
69
# The number of private network links to use.
70
GANETI_MAX_LINK_NUMBER = 100
71
# Firewalling
72
GANETI_FIREWALL_ENABLED_TAG = 'synnefo:network:0:enabled'
73
GANETI_FIREWALL_DISABLED_TAG = 'synnefo:network:0:disabled'
74
GANETI_FIREWALL_PROTECTED_TAG = 'synnefo:network:0:protected'
75

    
76
# our REST API would prefer to be explicit about trailing slashes
77
APPEND_SLASH = False
78

    
79
# Maximum number of VMs a user is allowed to have
80
MAX_VMS_PER_USER = 2