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

« back to all changes in this revision

Viewing changes to src/maas/settings.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:
50
50
# The MAAS CLI.
51
51
MAAS_CLI = 'sudo maas'
52
52
 
53
 
# The location of the Longpoll server.
54
 
# Set LONGPOLL_SERVER_URL to have the web app proxy requests to
55
 
# a txlongpoll (note that this should only be required in a dev
56
 
# environment).
57
 
LONGPOLL_SERVER_URL = None
58
 
 
59
53
# The relative path where a proxy to the Longpoll server can be
60
54
# reached.  Longpolling will be disabled in the UI if this is None.
61
55
LONGPOLL_PATH = '/longpoll/'
78
72
API_URL_REGEXP = '^/api/1[.]0/'
79
73
METADATA_URL_REGEXP = '^/metadata/'
80
74
 
81
 
YUI_COMBO_URL = "combo/"
82
75
# We handle exceptions ourselves (in
83
76
# maasserver.middleware.APIErrorsMiddleware)
84
77
PISTON_DISPLAY_ERRORS = False
85
78
 
86
79
TEMPLATE_DEBUG = DEBUG
 
80
 
 
81
# Set this to where RaphaelJS files can be found.
 
82
# Use a relative path (i.e. a path not starting with '/') to indicate a
 
83
# path relative to the 'static' directory.
 
84
# Use an absolute path (like '/usr/share/javascript/raphael/') to serve the
 
85
# files from a custom location.
 
86
RAPHAELJS_LOCATION = os.path.join('jslibs', 'raphael')
 
87
 
87
88
YUI_DEBUG = DEBUG
88
 
YUI_VERSION = '3.4.1'
 
89
 
 
90
# Set this to where YUI3 files can be found.
 
91
# Use a relative path (i.e. a path not starting with '/') to indicate a
 
92
# path relative to the 'static' directory.
 
93
# Use an absolute path (like '/usr/share/javascript/yui/') to serve the files
 
94
# from a custom location.
 
95
YUI_LOCATION = os.path.join('jslibs', 'yui')
 
96
 
89
97
STATIC_LOCAL_SERVE = DEBUG
90
98
 
91
99
AUTH_PROFILE_MODULE = 'maasserver.UserProfile'
210
218
    "django.contrib.messages.context_processors.messages",
211
219
    "maasserver.context_processors.yui",
212
220
    "maasserver.context_processors.global_options",
 
221
    "maasserver.context_processors.static_resources",
213
222
)
214
223
 
215
224
MIDDLEWARE_CLASSES = (
224
233
    'metadataserver.middleware.MetadataErrorsMiddleware',
225
234
    'django.middleware.transaction.TransactionMiddleware',
226
235
    'django.middleware.csrf.CsrfViewMiddleware',
227
 
    'django.middleware.csrf.CsrfResponseMiddleware',
228
236
    'maasserver.middleware.ExceptionLoggerMiddleware',
229
237
    'django.contrib.auth.middleware.AuthenticationMiddleware',
230
238
    'django.contrib.messages.middleware.MessageMiddleware',
282
290
# doing.
283
291
COMMISSIONING_SCRIPT = 'etc/maas/commissioning-user-data'
284
292
 
 
293
# The duration, in minutes, after which we consider a commissioning node
 
294
# to have failed and mark it as FAILED_TESTS.
 
295
COMMISSIONING_TIMEOUT = 60
 
296
 
 
297
# Allow anonymous access to the metadata for a node, keyed by its MAC
 
298
# address.  This is for development purposes only.  DO NOT ENABLE THIS
 
299
# IN PRODUCTION or private metadata, including MAAS access credentials
 
300
# for all nodes, will be exposed on your network.
 
301
ALLOW_UNSAFE_METADATA_ACCESS = False
 
302
 
 
303
# Earlier locations in the following list will shadow, or overlay, later
 
304
# locations.
 
305
PRESEED_TEMPLATE_LOCATIONS = (
 
306
    "/etc/maas/preseeds",
 
307
    "/usr/share/maas/preseeds",
 
308
    )
 
309
 
285
310
# Allow the user to override settings in maas_local_settings.
286
311
import_local_settings()