Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / app_settings / default / backend.py @ 16ddd1fe

History | View | Annotate | Download (1.5 kB)

1
# -*- coding: utf-8 -*-
2
#
3
# Ganeti backend configuration
4
###################################
5

    
6
# The RAPI endpoint and associated credentials to use
7
# for talking to the Ganeti backend.
8
GANETI_MASTER_IP = "10.0.0.1"
9
GANETI_CLUSTER_INFO = (GANETI_MASTER_IP, 5080, "username", "password")
10

    
11
# This prefix gets used when determining the instance names
12
# of Synnefo VMs at the Ganeti backend.
13
# The dash must always appear in the name!
14
BACKEND_PREFIX_ID = "snf-"
15

    
16
# The following dictionary defines deployment-specific
17
# arguments to the RAPI CreateInstance call.
18
# At a minimum it should contain the
19
# 'disk_template', 'os_provider', and 'hvparams' keys.
20
#
21
# More specifically:
22
# a) disk_template:
23
#    The disk template to use when creating the instance.
24
#    Suggested values: 'plain', or 'drbd'.
25
# b) os:
26
#    The OS provider to use (customized Ganeti Instance Image)
27
# c) hvparams:
28
#    Hypervisor-specific parameters (serial_console = False, see #785)
29
# d) If using the DRBD disk_template, you may want to include
30
#    wait_for_sync = False (see #835).
31
#
32
GANETI_CREATEINSTANCE_KWARGS = {
33
    'os': 'snf-image+default',
34
    'hvparams': {'serial_console': False},
35
    'wait_for_sync': False}
36

    
37
# If True, qemu-kvm will hotplug a NIC when connecting a vm to
38
# a network. This requires qemu-kvm=1.0.
39
GANETI_USE_HOTPLUG = False
40

    
41
# This module implements the strategy for allocating a vm to a backend
42
BACKEND_ALLOCATOR_MODULE = "synnefo.logic.allocators.default_allocator"
43
# Refresh backend statistics timeout, in minutes, used in backend allocation
44
BACKEND_REFRESH_MIN = 15