1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
# IVLE - Informatics Virtual Learning Environment
# Copyright (C) 2007-2009 The University of Melbourne
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# Author: Matt Giuca, Will Grant
#
# This file defines the configuration spec for the ivle.conf file.
# This is used by configobj to validate and convert configuration options.
# Detailed comments can be found in the generated config files.
[urls]
root = string(default="/")
public_host = string
svn_addr = string
[paths]
prefix = string(default="/usr/local")
data = string(default="/var/lib/ivle")
logs = string(default="/var/log/ivle")
share = string(default="${prefix}/share/ivle")
lib = string(default="${prefix}/lib/ivle")
[[jails]]
mounts = string(default="${data}/jailmounts")
src = string(default="${data}/jails")
template = string(default="${src}/__base__")
template_build = string(default="${src}/__base_build__")
[[svn]]
base = string(default="${data}/svn")
conf = string(default="${base}/svn.conf")
group_conf = string(default="${base}/svn-group.conf")
repo_path = string(default="${base}/repositories")
auth_ivle = string(default="${base}/ivle.auth")
[policy]
tutors_can_enrol_students = boolean(default=False)
tutors_can_edit_worksheets = boolean(default=True)
tutors_can_admin_groups = boolean(default=True)
[media]
version = string(default=None)
[[externals]]
jquery = string(default="/usr/share/javascript/jquery")
[database]
host = string(default="localhost")
port = integer(default=5432)
name = string(default="ivle")
username = string
password = string
[auth]
modules = string_list(default=list())
ldap_url = string(default=None)
ldap_format_string = string(default=None)
subject_pulldown_modules = string_list(default=list())
[usrmgt]
host = string(default="localhost")
port = integer(default=2178)
magic = string
[jail]
devmode = boolean(default=False)
suite = string(default="hardy")
mirror = string(default="http://archive.ubuntu.com/ubuntu")
extra_sources = string_list(default=list())
extra_packages = string_list(default=list('python-configobj', 'python-cjson', 'python-svn'))
extra_keys = string(default=None) # Cannot have triple-quoted list members.
# user_info is for jail-specific settings for the user who owns the jail
# (XXX This should be in a user-specific place but since we're worried a user
# may delete his/her .conf file, we put it here for now).
[user_info]
login = string(default=None)
svn_pass = string(default=None)
|