summaryrefslogtreecommitdiff
path: root/manifests/init.pp
blob: c69ac8d1e4a2cfbaca890494e2dc4420c7485fb5 (plain)
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
class trac {
  # the needed packages
  package { "trac":                  ensure => installed, }
  package { "trac-git":              ensure => installed, }
  package { "libapache2-mod-python": ensure => installed, }

  # needed by http://trac-hacks.org/wiki/TracWikiPrintPlugin
  # wikiprint needs also pisa, which is still in testing (as the
  # time of writing), see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504277
  #package { [ 'python-reportlab', 'python-html5lib', 'python-pypdf', 'python-imaging', 'python-pygments' ]:
  #  ensure => installed,
  #}

  # needed by http://trac-hacks.org/wiki/TracWikiToPdfPlugin
  package { [ "htmldoc", "python-clearsilver" ]:
    ensure => present,
  }

  # various plugins
  package { [ "trac-wysiwyg",  "trac-wikiprint",
              "trac-graphviz", "trac-authopenid" ]:
    ensure => $lsbdistcodename ? {
      'lenny'   => absent,
      'precise' => absent,
      default   => present,
    },
  }

  # 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,
  }
}