~ubuntu-branches/ubuntu/quantal/maas/quantal-proposed

« back to all changes in this revision

Viewing changes to etc/celeryconfig_common.py

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez, Andres Rodriguez, Gavin Panella, Raphael Badin
  • Date: 2012-10-16 10:31:37 UTC
  • mfrom: (1.2.1) (20.1.8 quantal)
  • Revision ID: package-import@ubuntu.com-20121016103137-f6h9izlca23r2oen
Tags: 0.1+bzr1269+dfsg-0ubuntu1
* New upstream bugfix release
  - Fixes commissioning failing to set memory attribute. (LP: #1064638)
  - Fixes node listing by adding pagination (LP: #1064672)
  - Changes default bind rndc key which breaks initscripts (LP: #1066938)
  - Fixes invalid DNS config once node is enlisted (LP: #1066958)
  - Reference documentation link to correct URL (LP: #1067261)

[ Andres Rodriguez ]
* debian/rules: Change upstream branch.

[ Gavin Panella ]
* debian/maas-dns.postinst: Remove MAAS-related include lines from named's
  config before adding a new one (LP: #1066929)

[ Raphael Badin ]
* debian/extras/maas-region-celeryd: Remove whitespace that affects DNS
  rabbitmq queue. (LP: #1067929)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright 2012 Canonical Ltd.  This software is licensed under the
 
2
# GNU Affero General Public License version 3 (see the file LICENSE).
 
3
 
 
4
"""Celery settings common to the region and the cluster controllers."""
 
5
 
 
6
from __future__ import (
 
7
    absolute_import,
 
8
    print_function,
 
9
    unicode_literals,
 
10
)
 
11
 
 
12
__metaclass__ = type
 
13
 
 
14
 
 
15
# Location of power action templates.  Use an absolute path, or leave as
 
16
# None to use the templates installed with the running version of MAAS.
 
17
POWER_TEMPLATES_DIR = None
 
18
 
 
19
# Location of power config files.  Use an absolute path, or leave as
 
20
# None to use the files installed with the running version of MAAS.
 
21
POWER_CONFIG_DIR = None
 
22
 
 
23
# Location of MAAS' bind configuration files.
 
24
DNS_CONFIG_DIR = '/etc/bind/maas'
 
25
 
 
26
# RNDC port to be configured by MAAS to communicate with the BIND
 
27
# server.
 
28
DNS_RNDC_PORT = 954
 
29
 
 
30
# Include the default RNDC controls (default RNDC key on port 953).
 
31
DNS_DEFAULT_CONTROLS = True
 
32
 
 
33
# DHCP leases file, as maintained by ISC dhcpd.
 
34
DHCP_LEASES_FILE = '/var/lib/maas/dhcp/dhcpd.leases'
 
35
 
 
36
# ISC dhcpd configuration file.
 
37
DHCP_CONFIG_FILE = '/etc/maas/dhcpd.conf'
 
38
 
 
39
# List of interfaces that the dhcpd should service (if managed by MAAS).
 
40
DHCP_INTERFACES_FILE = '/var/lib/maas/dhcpd-interfaces'
 
41
 
 
42
# Broker connection information.  This is read by the region controller
 
43
# and sent to connecting cluster controllers.
 
44
# The cluster controllers currently read this same configuration file,
 
45
# but the broker URL they receive from the region controller overrides
 
46
# this setting.
 
47
BROKER_URL = 'amqp://guest:guest@localhost:5672//'
 
48
 
 
49
# Location for log file.
 
50
MAAS_CELERY_LOG = '/var/log/maas/celery.log'
 
51
 
 
52
# Location for the cluster worker schedule file.
 
53
MAAS_CLUSTER_CELERY_DB = '/var/lib/maas/celerybeat-cluster-schedule'
 
54
 
 
55
WORKER_QUEUE_DNS = 'celery'
 
56
WORKER_QUEUE_BOOT_IMAGES = 'celery'
 
57
 
 
58
# Each cluster should have its own queue created automatically by Celery.
 
59
CELERY_CREATE_MISSING_QUEUES = True
 
60
 
 
61
CELERY_IMPORTS = (
 
62
    # Tasks.
 
63
    "provisioningserver.tasks",
 
64
 
 
65
    # This import is needed for its side effect: it initializes the
 
66
    # cache that allows workers to share data.
 
67
    "provisioningserver.initialize_cache",
 
68
    )
 
69
 
 
70
CELERY_ACKS_LATE = True
 
71
 
 
72
# Do not store the tasks' return values (aka tombstones);
 
73
# This improves performance.
 
74
CELERY_IGNORE_RESULT = True