Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.mylyn.trac.releng/modules/trac/manifests/site.pp')
-rw-r--r--org.eclipse.mylyn.trac.releng/modules/trac/manifests/site.pp11
1 files changed, 9 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.trac.releng/modules/trac/manifests/site.pp b/org.eclipse.mylyn.trac.releng/modules/trac/manifests/site.pp
index 4b9f6c0d5..b9d9080a3 100644
--- a/org.eclipse.mylyn.trac.releng/modules/trac/manifests/site.pp
+++ b/org.eclipse.mylyn.trac.releng/modules/trac/manifests/site.pp
@@ -7,7 +7,9 @@ define trac::site (
$allbasicauth = false,
$certauth = false,
$digestauth = false,
- $base = "/home/tools/trac",) {
+ $base = $trac::base,
+ $envtype = "trac",
+ $envinfo = "",) {
$prefix = "$base/share/trac-$version"
$envbase = "$base/var/$envid"
@@ -126,11 +128,16 @@ define trac::site (
}
}
+ file { "$envbase/service.json":
+ content => template('trac/service.json.erb'),
+ require => File["$envbase"],
+ }
+
exec { "add $envbase to /etc/apache2/conf.d/trac.conf":
command => "echo 'Include $base/conf.d/[^.#]*\n' >> /etc/apache2/conf.d/trac.conf",
require => File["$conf/$envid.conf"],
notify => Service["apache2"],
- onlyif => "grep -qe '^Include $base/conf.d' /etc/apache2/conf.d/trac.conf; test $? != 0"
+ onlyif => "grep -qe '^Include $base/conf.d' /etc/apache2/conf.d/trac.conf; test $? != 0"
}
}

Back to the top