~ubuntu-branches/ubuntu/raring/maas/raring-updates

« back to all changes in this revision

Viewing changes to etc/celeryconfig.py

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2012-07-03 17:42:37 UTC
  • mfrom: (1.1.13)
  • Revision ID: package-import@ubuntu.com-20120703174237-p8l0keuuznfg721k
Tags: 0.1+bzr709+dfsg-0ubuntu1
* New Upstream release
* debian/control:
  - Depends on python-celery, python-tempita, libjs-yui3-{full,min},
    libjs-raphael
* debian/maas.install:
  - Install apiclient, celeryconfig.py, maas-import-pxe-files, preseeds_v2.
  - Update to install various files from chroot, rather tha manually copy
    them from the source.
* debian/maas.links: symlink celeryconfig.py
* debian/maas.maas-celery.upstart: Add job.
* debian/rules:
  - Install celery upstart job.
  - Do not install jslibs as packages are now used.
  - Drop copying of maas_local_settings_sample.py as source now ships
    a maas_local_settings.py
* debian/patches:
  - 04-maas-http-fix.patch: Drop. Merged upstream.
  - 01-fix-database-settings.patch: Refreshed.
  - 99_enums_js.patch: Added until creation of enum.js / build process
    is fixed.
* debian/maas.postinst: Update bzr version to correctly handle upgrades.

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 for the maas project.
 
5
 
 
6
Do not edit this file.  Instead, put custom settings in a module named
 
7
user_maasceleryconfig.py somewhere on the PYTHONPATH.
 
8
"""
 
9
 
 
10
from __future__ import (
 
11
    absolute_import,
 
12
    print_function,
 
13
    unicode_literals,
 
14
)
 
15
 
 
16
__metaclass__ = type
 
17
 
 
18
from maas import import_settings
 
19
 
 
20
# Location of power action templates.  Use an absolute path, or leave as
 
21
# None to use the templates installed with the running version of MAAS.
 
22
POWER_TEMPLATES_DIR = None
 
23
 
 
24
# Location of PXE config templates.  Use an absolute path, or leave as
 
25
# None to use the templates installed with the running version of MAAS.
 
26
PXE_TEMPLATES_DIR = None
 
27
 
 
28
# TFTP server's root directory.
 
29
TFTPROOT = "/var/lib/tftpboot"
 
30
 
 
31
 
 
32
try:
 
33
    import user_maasceleryconfig
 
34
except ImportError:
 
35
    pass
 
36
else:
 
37
    import_settings(user_maasceleryconfig)
 
38
 
 
39
 
 
40
CELERY_IMPORTS = (
 
41
    "provisioningserver.tasks",
 
42
)
 
43
 
 
44
CELERY_ACKS_LATE = True