summaryrefslogtreecommitdiff
path: root/manifests/init.pp
blob: 58d2194aa8d26c44b3aa5c049555f97521f16a68 (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
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 squeeze
  package { "trac-wikirename":
    ensure => $lsbdistcodename ? {
      'squeeze' => present,
      default   => absent,
    },
  }

  # buggy squeeze packages, use eggs instead
  package { [ "trac-mastertickets", "trac-accountmanager" ]:
    ensure => absent,
  }
}