Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2012-11-03 11:47:08 +0000
committerSteffen Pingel2012-11-03 11:47:08 +0000
commit762a77eab68b798924cb86750d222894d27aaf57 (patch)
tree492dbe45c44b5ef0605522724edbbd10f6b2fb70 /org.eclipse.mylyn.trac.releng/manifests
parent15c001ab887c84ab4b0b85503056fe75fe38e927 (diff)
downloadorg.eclipse.mylyn.tasks-762a77eab68b798924cb86750d222894d27aaf57.tar.gz
org.eclipse.mylyn.tasks-762a77eab68b798924cb86750d222894d27aaf57.tar.xz
org.eclipse.mylyn.tasks-762a77eab68b798924cb86750d222894d27aaf57.zip
386344: simplify Vagrant configuration for Trac
Change-Id: I4d2da7cbc8f508d27541488ef4a2751165b6b97e Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=386344
Diffstat (limited to 'org.eclipse.mylyn.trac.releng/manifests')
-rw-r--r--org.eclipse.mylyn.trac.releng/manifests/default.pp85
1 files changed, 85 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.trac.releng/manifests/default.pp b/org.eclipse.mylyn.trac.releng/manifests/default.pp
new file mode 100644
index 000000000..61a203ae9
--- /dev/null
+++ b/org.eclipse.mylyn.trac.releng/manifests/default.pp
@@ -0,0 +1,85 @@
+Exec { path => [ "/bin/", "/sbin/" , "/usr/bin/", "/usr/sbin/" ] }
+
+$tools = "/tmp/tools"
+
+include apache
+
+class apache {
+ package { "apache2":
+ ensure => present,
+ }
+
+ package { "libapache2-mod-fcgid" :
+ ensure => "installed",
+ }
+
+ service { "apache2":
+ ensure => running,
+ require => Package["apache2"],
+ }
+
+ exec { "Enable auth_digest module":
+ command => "a2enmod auth_digest",
+ require => Package["apache2"],
+ creates => "/etc/apache2/mods-enabled/auth_digest.load",
+ }
+
+ exec { "Enable fcgid module":
+ command => "a2enmod fcgid",
+ require => Package["libapache2-mod-fcgid"],
+ creates => "/etc/apache2/mods-enabled/fcgid.load",
+ }
+
+ exec { "Enable proxy mod":
+ command => "a2enmod proxy",
+ require => Package["apache2"],
+ creates => "/etc/apache2/mods-enabled/proxy.load",
+ }
+
+ exec { "Enable proxy_http mod":
+ command => "a2enmod proxy_http",
+ require => Package["apache2"],
+ creates => "/etc/apache2/mods-enabled/proxy_http.load",
+ }
+
+ exec { "Enable ssl module":
+ command => "a2enmod ssl",
+ require => Package["apache2"],
+ creates => "/etc/apache2/mods-enabled/ssl.load",
+ }
+
+ file { "/etc/apache2/sites-enabled/001-default-ssl":
+ ensure => link,
+ target => "/etc/apache2/sites-available/default-ssl",
+ }
+
+}
+
+exec { "apt-get update":
+ command => "apt-get update",
+ onlyif => "find /var/lib/apt/lists/ -mtime -7 | (grep -q Package; [ $? != 0 ])",
+}
+
+package { "openjdk-6-jre" :
+ ensure => "installed",
+ require => Exec["apt-get update"],
+}
+
+Trac {
+ base => "$tools/trac",
+}
+Trac::Plugin {
+ base => "$tools/trac",
+}
+Trac::Site {
+ base => "$tools/trac",
+}
+
+trac::defaultsites { "trac":
+}
+
+file { "/etc/apache2/conf.d/trac.conf":
+ content => "DefaultInitEnv PYTHON_EGG_CACHE /tmp/eggs\nInclude $tools/trac/conf.d/[^.#]*\n",
+ require => Package["apache2"],
+ notify => Service["apache2"],
+} \ No newline at end of file

Back to the top