Permalink
Browse files

- add jenkins behind apache

  • Loading branch information...
jordansissel committed Oct 14, 2012
1 parent bb005e6 commit f50522419a88362c7863aa6789fa382fab66e0b3
Showing with 23 additions and 0 deletions.
  1. +8 −0 modules/jenkins/files/jenkins.httpd.conf
  2. +15 −0 modules/jenkins/manifests/service.pp
@@ -0,0 +1,8 @@
+<VirtualHost *:80>
+ ServerName r.logstash.net
+ ServerAlias r
+
+ RewriteEngine on
+ RewriteRule ^/jenkins$ http://localhost:8001/ [P]
+ RewriteRule ^/jenkins/(.*)$ http://localhost:8001/$1 [P]
+</VirtualHost>
@@ -1,6 +1,21 @@
class jenkins::service {
include ::jenkins::package
+ include apache
+ include apache::params
+ include apache::mod::default
+
+ file {
+ "$apache::params::vdir/r.conf":
+ ensure => file,
+ source => "puppet:///modules/jenkins/jenkins.httpd.conf",
+ # I don't like notifying an external service (defined by the 'apache' class)
+ # but the puppetlabs/apache module defines it there and until I patch it
+ # this is what is required. After fixing the apache module, I'll be
+ # able to do: notify => Class["apache::service"]
+ notify => Service["httpd"];
+ }
+
runit::process {
"jenkins":
ensure => present,

0 comments on commit f505224

Please sign in to comment.