Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-gtools / synnefo / ganeti / default / settings.py @ ef7263df

History | View | Annotate | Download (1.1 kB)

1
from synnefo.settings.setup import Setting, Mandatory, Default
2

    
3
# snf-cyclades-gtools settings
4

    
5
AMQP_HOSTS = Mandatory(
6
    example_value=["amqp://username:password@host:port"],
7
    description="List of RabbitMQ endpoints.",
8
    category="snf-cyclades-gtools",
9
)
10

    
11
BACKEND_PREFIX_ID = Default(
12
    default_value="snf-",
13
    example_value="my_service_name_prefix-",
14
    description="Ganeti instances that run on this backend and their name "
15
        "starts with this prefix will be considered as Synnefo managed. Thus, "
16
        "corresponding notifications for those instances will be pushed to the "
17
        "message queue.",
18
    category="snf-cyclades-gtools",
19
    export=True,
20
)
21

    
22
EXCHANGE_GANETI = Default(
23
    default_value="ganeti",
24
    description="The message queue's exchange name. Notifications from "
25
        "Ganeti are pushed to this exchange.",
26
    category="snf-cyclades-gtools",
27
    export=False,
28
)
29

    
30
AMQP_BACKEND = Default(
31
    default_value="puka",
32
    example_value="puka",
33
    description="The AMQP backend client. Currently, only 'puka' is "
34
        "supported.",
35
    category="snf-cyclades-gtools",
36
    export=False,
37
)