Skip to main content
summaryrefslogtreecommitdiffstats
blob: 933021eb0aad69dd0664ffa81bb385944c90603c (plain) (blame)
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
93
94
95
96
define trac::defaultsites ($base = $trac::base, $userOwner = $trac::userOwner, $userGroup = $trac::userGroup,) {
  include "trac"

  /* Defaults */

  Trac::Trac {
    base      => $base,
    userOwner => $userOwner,
    userGroup => $userGroup,
  }

  Trac::Plugin {
    base      => $base,
    userOwner => $userOwner,
    userGroup => $userGroup,
  }

  Trac::Site {
    base      => $base,
    version   => "1.0",
    require   => Trac["1.0"],
    userOwner => $userOwner,
    userGroup => $userGroup,
  }

  /* Instances */

  trac::trac { "1.0":
  }

  trac::trac { "1.0.1":
  }

  trac::trac { "trunk":
  }

  /* Plugins */

  trac::plugin { "accountmanagerplugin-0.11":
    url => "http://trac-hacks.org/svn/accountmanagerplugin/0.11",
    egg => "TracAccountManager",
  }

  trac::plugin { "masterticketsplugin-trunk":
    url => "http://trac-hacks.org/svn/masterticketsplugin/trunk",
    egg => "TracMasterTickets",
  }

  trac::plugin { "xmlrpcplugin-trunk":
    url => "http://trac-hacks.org/svn/xmlrpcplugin/trunk",
    egg => "TracXMLRPC",
  }

  /* Sites */

  trac::site { "trac-1.0":
    version => "1.0",
    require => Trac["1.0"]
  }

  trac::site { "trac-1.0.1":
    version => "1.0.1",
    require => Trac["1.0.1"],
    envdefault => true,
  }

  trac::site { "trac-1.0-allbasic":
    allbasicauth => true,
    envinfo      => "AllBasicAuth",
  }

  trac::site { "trac-1.0-cert":
    certauth => true,
    envinfo  => "CertAuth",
  }

  trac::site { "trac-1.0-digest":
    digestauth => true,
    envinfo    => "DigestAuth",
  }

  trac::site { "trac-1.0-form-auth":
    accountmanagerplugin => "0.11",
    envinfo              => "FormAuth",
  }

  trac::site { "trac-trunk":
    version => "trunk",
    require => Trac["trunk"],
  }

  trac::site { "trac-test":
    envinfo    => "Test",
  }

}

Back to the top