backend.py 1.16 KB
Newer Older
1
2
3
4
5
6
7
# -*- coding: utf-8 -*-
#
# Ganeti backend configuration
###################################

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

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

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