Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Becker2012-11-03 04:21:12 -0400
committerSteffen Pingel2012-11-03 06:57:08 -0400
commite0717fafc12b986f0ce8b455c526d58a1f00a938 (patch)
tree356f0faf96436f96da05586aea86bc7e4d065b6e /org.eclipse.mylyn.trac.releng
parentfd8f30615d6b29b6cf4678405d13205d8c271de6 (diff)
downloadorg.eclipse.mylyn.tasks-e0717fafc12b986f0ce8b455c526d58a1f00a938.tar.gz
org.eclipse.mylyn.tasks-e0717fafc12b986f0ce8b455c526d58a1f00a938.tar.xz
org.eclipse.mylyn.tasks-e0717fafc12b986f0ce8b455c526d58a1f00a938.zip
386344: provide standalone configuration for Trac VM
Diffstat (limited to 'org.eclipse.mylyn.trac.releng')
-rw-r--r--org.eclipse.mylyn.trac.releng/Vagrantfile14
-rw-r--r--org.eclipse.mylyn.trac.releng/modules/trac/manifests/site.pp1
-rw-r--r--org.eclipse.mylyn.trac.releng/modules/trac/manifests/trac.pp85
3 files changed, 100 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.trac.releng/Vagrantfile b/org.eclipse.mylyn.trac.releng/Vagrantfile
new file mode 100644
index 000000000..adc58ac74
--- /dev/null
+++ b/org.eclipse.mylyn.trac.releng/Vagrantfile
@@ -0,0 +1,14 @@
+Vagrant::Config.run do |config|
+ config.vm.define :trac do |trac_config|
+ trac_config.vm.box = "lucid32"
+ trac_config.vm.box_url = "http://files.vagrantup.com/lucid32.box"
+
+ trac_config.vm.provision :puppet do |puppet|
+ puppet.module_path = "modules"
+ puppet.manifests_path = "modules/trac/manifests"
+ puppet.manifest_file = "trac.pp"
+ end
+ trac_config.vm.forward_port 80, 3080
+ trac_config.vm.forward_port 443, 3443
+ end
+end \ No newline at end of file
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 91853ceb8..a5f81937b 100644
--- a/org.eclipse.mylyn.trac.releng/modules/trac/manifests/site.pp
+++ b/org.eclipse.mylyn.trac.releng/modules/trac/manifests/site.pp
@@ -86,6 +86,7 @@ define trac::site(
content => template('trac/trac.fcgi.erb'),
mode => 755,
require => File["$envbase"],
+ notify => Service["apache2"],
}
if $xmlrpcplugin {
diff --git a/org.eclipse.mylyn.trac.releng/modules/trac/manifests/trac.pp b/org.eclipse.mylyn.trac.releng/modules/trac/manifests/trac.pp
new file mode 100644
index 000000000..61a203ae9
--- /dev/null
+++ b/org.eclipse.mylyn.trac.releng/modules/trac/manifests/trac.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