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
|
class trac {
# The needed packages
package { "trac": ensure => installed, }
package { "libapache2-mod-python": ensure => installed, }
# Needed by http://trac-hacks.org/wiki/TracWikiToPdfPlugin
package { [ "htmldoc", "python-clearsilver" ]:
ensure => present,
}
# Various plugins
package { [ "trac-wysiwyg", "trac-graphviz", "trac-authopenid" ]:
ensure => $lsbdistcodename ? {
'lenny' => absent,
'precise' => absent,
default => present,
},
}
# Available just on wheezy
package { 'trac-git':
ensure => $::lsbdistcodename ? {
'wheezy' => present,
default => absent,
},
}
# Available just on squeeze
package { "trac-wikirename":
ensure => $lsbdistcodename ? {
'squeeze' => present,
default => absent,
},
}
# Buggy squeeze packages, use eggs instead
package { [ "trac-mastertickets", "trac-accountmanager" ]:
ensure => absent,
}
}
|