~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to doc/man/config.rst

  • Committer: William Grant
  • Date: 2009-12-08 05:26:00 UTC
  • Revision ID: grantw@unimelb.edu.au-20091208052600-j5jpe25vgjtypex9
Fix missing GroupsView when creating a project set.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.. IVLE - Informatics Virtual Learning Environment
 
2
   Copyright (C) 2007-2009 The University of Melbourne
 
3
 
 
4
.. This program is free software; you can redistribute it and/or modify
 
5
   it under the terms of the GNU General Public License as published by
 
6
   the Free Software Foundation; either version 2 of the License, or
 
7
   (at your option) any later version.
 
8
 
 
9
.. This program is distributed in the hope that it will be useful,
 
10
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
   GNU General Public License for more details.
 
13
 
 
14
.. You should have received a copy of the GNU General Public License
 
15
   along with this program; if not, write to the Free Software
 
16
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
17
 
 
18
.. _ref-configuring-ivle:
 
19
 
 
20
****************
 
21
Configuring IVLE
 
22
****************
 
23
 
 
24
This page describes the configuration of IVLE. This consists of populating the 
 
25
:file:`ivle.conf` file and configuring Apache to serve the IVLE webapp and 
 
26
Subversion repositories.
 
27
 
 
28
Configuration options
 
29
=====================
 
30
 
 
31
Most of the configuration of IVLE is done by editing the file 
 
32
:file:`ivle.conf`, located by default in :file:`/etc/ivle/ivle.conf`. These 
 
33
settings are required as part of the :ref:`install process <ref-install>` and 
 
34
for actual running of IVLE.
 
35
 
 
36
It uses the `ConfigObj`_ text format which is heavily based on the 'INI' text 
 
37
format.
 
38
 
 
39
.. _ConfigObj: http://www.voidspace.org.uk/python/configobj.html
 
40
 
 
41
[urls]
 
42
------
 
43
Configuration of URLs used by the IVLE webapp.
 
44
 
 
45
.. describe:: root
 
46
 
 
47
    :type: string(default="/")
 
48
 
 
49
    Path on HTTP server that IVLE is served from.
 
50
 
 
51
.. describe:: public_host
 
52
 
 
53
    :type: string
 
54
 
 
55
    The server goes into "public mode" if the browser sends a request with 
 
56
    this host. This is for security reasons - we only serve public student 
 
57
    files on a separate domain to the main IVLE site.
 
58
    Public mode does not use cookies, and serves only public content.
 
59
    Private mode (normal mode) requires login, and only serves files relevant 
 
60
    to the logged-in user. e.g. 'public.ivle.org'
 
61
 
 
62
.. describe:: svn_addr
 
63
 
 
64
    :type: string
 
65
 
 
66
    The base url for accessing subversion repositories. e.g.  
 
67
    'http://svn.ivle.org'
 
68
 
 
69
[paths]
 
70
-------
 
71
Configuration for IVLE installation and data paths.
 
72
 
 
73
.. describe:: prefix
 
74
 
 
75
    :type: string(default="/usr/local")
 
76
 
 
77
    The prefix that is prepended to installation paths.
 
78
 
 
79
.. describe:: data
 
80
 
 
81
    :type: string(default="/var/lib/ivle")
 
82
 
 
83
    Directory where IVLE data such as user jails will be stored.
 
84
 
 
85
.. describe:: logs
 
86
 
 
87
    :type: string(default="/var/log/ivle")
 
88
 
 
89
    Directory where IVLE log files such as :file:`ivle_error.log` will be 
 
90
    saved.
 
91
.. describe:: share
 
92
 
 
93
    :type: string(default="${prefix}/share/ivle")
 
94
 
 
95
    Directory where IVLE shared data such as ``usrmgt-server``, 
 
96
    ``python-console`` and services will be installed.
 
97
 
 
98
.. describe:: lib
 
99
 
 
100
    :type: string(default="${prefix}/lib/ivle")
 
101
 
 
102
    Directory where IVLE libraries such as ``trampoline`` and ``timount`` will 
 
103
    be installed.
 
104
 
 
105
[[jails]]
 
106
~~~~~~~~~
 
107
Configuration paths for user `Jails <ref-jail>`_.
 
108
 
 
109
.. describe:: mounts
 
110
 
 
111
    :type: string(default="${data}/jailmounts"))
 
112
 
 
113
    Directory where complete jails will be mounted.
 
114
 
 
115
 
 
116
.. describe:: src
 
117
 
 
118
    :type: string(default="${data}/jails")
 
119
 
 
120
    Directory where user specific jail content will be stored.
 
121
 
 
122
.. describe:: template
 
123
 
 
124
    :type: string(default="${src}/__base__")
 
125
 
 
126
    Directory where template file system for each jail will be stored.
 
127
 
 
128
.. describe:: template_build
 
129
 
 
130
    :type: string(default="${src}/__base_build__")
 
131
 
 
132
    Directory where template file system will be built before being moved to 
 
133
    the ``template`` directory.
 
134
 
 
135
[[svn]]
 
136
~~~~~~~
 
137
Configuration paths for Subversion repositories.
 
138
 
 
139
.. describe:: base
 
140
 
 
141
    :type: string(default="${data}/svn")
 
142
 
 
143
    Directory where Subversion data will be stored
 
144
 
 
145
.. describe:: conf
 
146
 
 
147
    :type: string(default="${base}/svn.conf")
 
148
 
 
149
    Location of Subversion WebDAV AuthzSVNAccessFile configuration file for 
 
150
    user repositories will be stored.
 
151
 
 
152
.. describe:: group_conf
 
153
 
 
154
    :type: string(default="${base}/svn-group.conf")
 
155
 
 
156
    Location of Subversion WebDAV AuthzSVNAccessFile configuration file for 
 
157
    group repositories will be stored.
 
158
 
 
159
.. describe:: repo_path
 
160
 
 
161
    :type: string(default="${base}/repositories")
 
162
 
 
163
    Location where user and group repositories will be stored.
 
164
 
 
165
.. describe:: auth_ivle
 
166
 
 
167
    :type: string(default="${base}/ivle.auth")
 
168
 
 
169
    Location where Subversion WebDAV AuthUserFile password hash file will be 
 
170
    stored.
 
171
 
 
172
[media]
 
173
-------
 
174
Configuration of `media serving <ref-media-serving>`_.
 
175
 
 
176
.. describe:: version
 
177
 
 
178
    :type: string(default=None)
 
179
 
 
180
    Media files such as images, CSS and JavaScript are aggressively cached in 
 
181
    IVLE. If this value is set then IVLE will send media URLs containing this 
 
182
    version number and content will be served with an ``Expires`` header set a 
 
183
    year in the future. This means that the client should only request a media 
 
184
    URL once and use the cached copy from then on.  This version number should 
 
185
    be incremented each time any media is changed (typically this should just 
 
186
    be set to the IVLE release number) so that updated media will be sent to 
 
187
    clients.
 
188
 
 
189
    If not provided or set to :const:`None`, IVLE will use standard browser 
 
190
    caching.
 
191
 
 
192
[[externals]]
 
193
~~~~~~~~~~~~~
 
194
Configuration details for external media dependencies used by IVLE.
 
195
 
 
196
.. describe:: jquery
 
197
 
 
198
    :type: string(default="/usr/share/javascript/jquery")
 
199
 
 
200
    Directory where jQuery library is installed.
 
201
 
 
202
 
 
203
[database]
 
204
----------
 
205
Configuration for the PostgreSQL database that IVLE uses.
 
206
 
 
207
.. describe:: host
 
208
 
 
209
    :type: string(default="localhost")
 
210
 
 
211
    Hostname of database IVLE server.
 
212
 
 
213
.. describe:: port
 
214
 
 
215
    :type: integer(default=5432)
 
216
 
 
217
    Port the database runs on.
 
218
 
 
219
.. describe:: name
 
220
 
 
221
    :type: string(default="ivle")
 
222
 
 
223
    Name of the IVLE database on the database server.
 
224
 
 
225
.. describe:: username
 
226
 
 
227
    :type: string
 
228
 
 
229
    Username which IVLE uses on the database server.
 
230
 
 
231
.. describe:: password
 
232
 
 
233
    :type: string
 
234
 
 
235
    Password which IVLE uses for authentication with the database server.
 
236
 
 
237
[auth]
 
238
------
 
239
Settings for configuring external user authentication with `authentication 
 
240
modules <ref-auth-modules>`_ and automatic subject enrollment with `subject 
 
241
pulldown modules <ref-subject-pulldown-modules>`_.
 
242
 
 
243
.. describe:: modules
 
244
 
 
245
    :type: string_list(default=list())
 
246
 
 
247
    List of `authentication modules <ref-auth-modules>`_ to attempt to 
 
248
    authenticate with if a user does not have a password set in the local 
 
249
    database.
 
250
 
 
251
.. describe:: ldap_url
 
252
 
 
253
    :type: string(default=None)
 
254
 
 
255
    URL of the LDAP server to be used by authentication modules.
 
256
 
 
257
.. describe:: ldap_format_string
 
258
 
 
259
    :type: string(default=None)
 
260
 
 
261
 
 
262
.. describe:: subject_pulldown_modules
 
263
 
 
264
    :type: string_list(default=list())
 
265
 
 
266
    List of `subject pulldown modules <ref-subject-pulldown-modules>`_ to be 
 
267
    checked when a user signs into IVLE to see what subjects a student is 
 
268
    enrolled in.
 
269
 
 
270
[usrmgt]
 
271
--------
 
272
Settings for the `User Management Server <ref-usrmgt-server>`_.
 
273
 
 
274
.. describe:: host
 
275
 
 
276
    :type: string(default="localhost")
 
277
 
 
278
    The hostname where the User Management Server is running.
 
279
 
 
280
.. describe:: port
 
281
 
 
282
    :type: integer(default=2178)
 
283
 
 
284
    The port that the User Management Server is running on.
 
285
 
 
286
.. describe:: magic
 
287
 
 
288
    :type: string
 
289
 
 
290
    The shared secret used to secure communication between IVLE Web 
 
291
    Application and the User Management Server.
 
292
 
 
293
[jail]
 
294
------
 
295
Options that control how the `Jail <ref-jail>`_ is built.
 
296
 
 
297
.. describe:: devmode
 
298
 
 
299
    :type: boolean(default=False)
 
300
 
 
301
    If set, copies IVLE files from the local machine into the jail rather than  
 
302
    installing them from a package.
 
303
 
 
304
    .. note::
 
305
 
 
306
        If the Python site packages directory differs between the local 
 
307
        machine and the jail (such as if different versions of Python are 
 
308
        installed) you will need to supply the site packages to be installed 
 
309
        with the ``--python-site-packages`` option to ``ivle-buildjail``.
 
310
 
 
311
.. describe:: suite
 
312
 
 
313
    :type: string(default="hardy")
 
314
 
 
315
    Which suite the jail will build with. This need not be the same as what 
 
316
    the local machine is running.
 
317
 
 
318
.. describe:: mirror
 
319
 
 
320
    :type: string(default="http://archive.ubuntu.com/ubuntu")
 
321
 
 
322
    The location of a HTTP mirror containing the specified suite.
 
323
 
 
324
.. describe:: extra_sources
 
325
 
 
326
    :type: string_list(default=list())
 
327
 
 
328
    A list of extra source locations to be added to the jail builder (such as 
 
329
    for site specific packages).
 
330
 
 
331
.. describe:: extra_packages
 
332
 
 
333
    :type: string_list(default=list())
 
334
 
 
335
    A list of extra packages to be installed in addition to the core packages 
 
336
    required for IVLE.
 
337
 
 
338
.. FIXME: Is this correct. Is it extra user packages (such as
 
339
    python-scipy) or all packages that aren't in a standard debootstrap build 
 
340
    (such as python-svn and python-cjson)?.
 
341
 
 
342
.. describe:: extra_keys
 
343
 
 
344
    :type: string(default=None)
 
345
 
 
346
    Any extra package signing keys to accept as correctly validate installed 
 
347
    packages.  Typically used for validating ``extra_sources`` packages.
 
348
    
 
349
    .. note:: Cannot have triple-quoted list members.
 
350
 
 
351
 
 
352
[user_info]
 
353
-----------
 
354
User specific settings that are added to a user's :file:`ivle.conf` file 
 
355
inside their jail.
 
356
 
 
357
.. warning::
 
358
 
 
359
    This should be in a user-specific place but since we're worried a user
 
360
    may delete his/her .conf file, we put it here for now). These properties 
 
361
    **should not** be set in the server's :file:`/etc/ivle/ivle.conf`.
 
362
 
 
363
.. describe:: login
 
364
 
 
365
    :type: string(default=None)
 
366
 
 
367
    The login name of the user.
 
368
 
 
369
.. describe:: svn_pass
 
370
 
 
371
    :type: string(default=None)
 
372
 
 
373
    The key used to access repositories on the Subversion server.
 
374
 
 
375
 
 
376
Apache configuration
 
377
====================
 
378
Apache is used in IVLE for hosting of the IVLE web application and hosting 
 
379
Subversion repositories over WebDAV. Typically the Subversion repository will 
 
380
run on the Master server and the Web Application will be run on a collection 
 
381
of slaves.  It is also possible to combine the two function together to run as 
 
382
a standalone server.
 
383
 
 
384
 
 
385
Web Application
 
386
---------------
 
387
The IVLE web application runs on Apache using ``mod_python``. An example 
 
388
configuration is provided in the file :file:`examples/config/apache.conf`.
 
389
 
 
390
At minimum the following settings must be specified:
 
391
 
 
392
.. describe:: ServerName
 
393
 
 
394
    Should be the formal hostname of the server, typically one that users will 
 
395
    use to access IVLE. For example, 'ivle.org'.
 
396
 
 
397
.. describe:: ServerAlias
 
398
 
 
399
    Should be set to the value of ``[urls] public_host`` that is specified in 
 
400
    :file:`ivle.conf`. This is to ensure that Apache will correctly handle 
 
401
    requests for the public content.
 
402
 
 
403
.. describe:: SetHandler
 
404
 
 
405
    Must be ``mod_python``
 
406
 
 
407
.. describe:: PythonHandler
 
408
 
 
409
    Must be ``ivle.dispatch``
 
410
 
 
411
.. describe:: PythonOption mod_python.file_session.database_directory
 
412
 
 
413
    Session directory for mod_python. This must be a shared directory between 
 
414
    all Slave servers, in particular when operating through a load balancer.  
 
415
    If not provided then users will encounter inconsistent behavior such as 
 
416
    being thrown back to the login screen after logging in.
 
417
 
 
418
Optional settings are:
 
419
 
 
420
.. describe:: PythonOption mod_python.session.cookie_name
 
421
 
 
422
    The name to be set for cookies rather than the one automatically generated 
 
423
    by mod_python. For example, 'ivle'.
 
424
 
 
425
.. describe:: PythonDebug
 
426
 
 
427
    If this option is set, any uncaught errors from mod_python will be sent to 
 
428
    the browser rather than being sent to the error log. It is recommended 
 
429
    that this setting is only used for development or debugging.
 
430
 
 
431
Subversion Repository
 
432
---------------------
 
433
IVLE also uses Apache to provide HTTP access to user's Subversion repositories 
 
434
using ``mod_dav_svn``. Typically this is run on a single, stand alone server; 
 
435
though it may be run in conjunction with the Web Application.  An example 
 
436
configuration is provided in the file :file:`examples/config/apache-svn.conf`.  
 
437
IVLE will automatically generate password hash and repository permission files 
 
438
that are used to control access to the repositories.
 
439
 
 
440
IVLE expects to find the paths ``users/`` and ``groups/`` at the URL provided 
 
441
by the value of ``[urls] svn_addr`` set in :file:`ivle.conf`. Thus there 
 
442
should be two ``Location`` clauses configured, one for users and one for 
 
443
groups.
 
444
 
 
445
User Repositories
 
446
~~~~~~~~~~~~~~~~~
 
447
 
 
448
.. describe:: DAV
 
449
 
 
450
    Must be ``svn``
 
451
 
 
452
.. describe:: SVNParentPath
 
453
 
 
454
    Directory where user repositories are stored. Should be the value of 
 
455
    ``[path] [[svn]] repo_path`` in :file:`ivle.conf` with 'users' appended.  
 
456
    For example, '/var/lib/ivle/svn/repositories/users'.
 
457
 
 
458
.. describe:: AuthzSVNAccessFile
 
459
 
 
460
    Location of the configuration file used to assign permissions to user 
 
461
    repositories. Should be the same value as ``[path] [[svn]] conf`` in 
 
462
    :file:`ivle.conf`.
 
463
 
 
464
.. describe:: Require
 
465
 
 
466
    Must be ``valid-user``
 
467
 
 
468
.. describe:: AuthType
 
469
 
 
470
    Must be ``Basic``
 
471
 
 
472
.. describe:: AuthName
 
473
 
 
474
    The name that should appear on authentication requests. For example, 'IVLE 
 
475
    Subversion repository'.
 
476
 
 
477
.. describe:: AuthUserFile
 
478
 
 
479
    Location of the password hash file for Subversion users. Should be the 
 
480
    same as the value of ``[path] [[svn]] auth_ivle``. For example, 
 
481
    '/var/lib/ivle/svn/ivle.auth'.
 
482
 
 
483
Group Repositories
 
484
~~~~~~~~~~~~~~~~~~
 
485
 
 
486
.. describe:: DAV
 
487
 
 
488
    Must be ``svn``
 
489
 
 
490
.. describe:: SVNParentPath
 
491
 
 
492
    Directory where user repositories are stored. Should be the value of 
 
493
    ``[path] [[svn]] repo_path`` in :file:`ivle.conf` with 'groups' appended.  
 
494
    For example, '/var/lib/ivle/svn/repositories/groups'.
 
495
 
 
496
.. describe:: AuthzSVNAccessFile
 
497
 
 
498
    Location of the configuration file used to assign permissions to group 
 
499
    repositories. Should be the same value as ``[path] [[svn]] group_conf`` in 
 
500
    :file:`ivle.conf`.
 
501
 
 
502
.. describe:: Require
 
503
 
 
504
    Must be ``valid-user``
 
505
 
 
506
.. describe:: AuthType
 
507
 
 
508
    Must be ``Basic``
 
509
 
 
510
.. describe:: AuthName
 
511
 
 
512
    The name that should appear on authentication requests. For example, 'IVLE 
 
513
    Subversion repository'.
 
514
 
 
515
.. describe:: AuthUserFile
 
516
 
 
517
    Location of the password hash file for Subversion users. Should be the 
 
518
    same as the value of ``[path] [[svn]] auth_ivle``. For example, 
 
519
    '/var/lib/ivle/svn/ivle.auth'.