1
# Copyright 2012 Canonical Ltd. This software is licensed under the
2
# GNU Affero General Public License version 3 (see the file LICENSE).
4
"""Celery settings common to the region and the cluster controllers."""
6
from __future__ import (
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
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
23
# Location of MAAS' bind configuration files.
24
DNS_CONFIG_DIR = '/etc/bind/maas'
26
# RNDC port to be configured by MAAS to communicate with the BIND
30
# Include the default RNDC controls (default RNDC key on port 953).
31
DNS_DEFAULT_CONTROLS = True
33
# DHCP leases file, as maintained by ISC dhcpd.
34
DHCP_LEASES_FILE = '/var/lib/maas/dhcp/dhcpd.leases'
36
# ISC dhcpd configuration file.
37
DHCP_CONFIG_FILE = '/etc/maas/dhcpd.conf'
39
# List of interfaces that the dhcpd should service (if managed by MAAS).
40
DHCP_INTERFACES_FILE = '/var/lib/maas/dhcpd-interfaces'
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
47
BROKER_URL = 'amqp://guest:guest@localhost:5672//'
49
# Location for log file.
50
MAAS_CELERY_LOG = '/var/log/maas/celery.log'
52
# Location for the cluster worker schedule file.
53
MAAS_CLUSTER_CELERY_DB = '/var/lib/maas/celerybeat-cluster-schedule'
55
WORKER_QUEUE_DNS = 'celery'
56
WORKER_QUEUE_BOOT_IMAGES = 'celery'
58
# Each cluster should have its own queue created automatically by Celery.
59
CELERY_CREATE_MISSING_QUEUES = True
63
"provisioningserver.tasks",
65
# This import is needed for its side effect: it initializes the
66
# cache that allows workers to share data.
67
"provisioningserver.initialize_cache",
70
CELERY_ACKS_LATE = True
72
# Do not store the tasks' return values (aka tombstones);
73
# This improves performance.
74
CELERY_IGNORE_RESULT = True