/[adm]/puppet/modules/viewvc/manifests/init.pp
ViewVC logotype

Diff of /puppet/modules/viewvc/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2656 by misc, Sun Jan 8 20:48:43 2012 UTC revision 2657 by misc, Mon Mar 19 22:23:21 2012 UTC
# Line 1  Line 1 
1  class viewvc {  class viewvc {
2      package { ['viewvc','python-svn','python-flup']: }      package {['viewvc',
3                  'python-svn',
4                  'python-flup']: }
5    
6      # http_expiration_time = 600      # http_expiration_time = 600
7      # svn_roots = admin: svn://svn.mageia.org/svn/adm/      # svn_roots = admin: svn://svn.mageia.org/svn/adm/
8    
9      file { '/etc/viewvc/viewvc.conf':      file { '/etc/viewvc/viewvc.conf':
10          content => template('viewvc/viewvc.conf'),          content => template('viewvc/viewvc.conf'),
11          notify => Service['apache'],          notify  => Service['apache'],
12          require => Package['viewvc'],          require => Package['viewvc'],
13      }      }
14    
# Line 13  class viewvc { Line 16  class viewvc {
16          webapp_file => 'viewvc/webapp.conf',          webapp_file => 'viewvc/webapp.conf',
17      }      }
18    
19      local_script { "kill_viewvc":      local_script { 'kill_viewvc':
20              content => template('viewvc/kill_viewvc.sh'),          content => template('viewvc/kill_viewvc.sh'),
21      }      }
22    
23      cron { 'kill_viewvc':      cron { 'kill_viewvc':
24          command => "/usr/local/bin/kill_viewvc",          command     => '/usr/local/bin/kill_viewvc',
25          hour => "*",          hour        => '*',
26          minute => "*/5",          minute      => '*/5',
27          user => "apache",          user        => 'apache',
28          environment => "MAILTO=root",          environment => 'MAILTO=root',
29      }      }
30    
31      apache::vhost_base { "svnweb.$domain":      apache::vhost_base { "svnweb.$::domain":
32          aliases => { "/viewvc" => "/var/www/viewvc/",          aliases => {'/viewvc' => '/var/www/viewvc/',
33                       "/" => "/usr/share/viewvc/bin/wsgi/viewvc.fcgi/" },                      '/'       => '/usr/share/viewvc/bin/wsgi/viewvc.fcgi/'},
34          content => template("viewvc/vhost.conf")          content => template('viewvc/vhost.conf')
35      }      }
36  }  }
37    

Legend:
Removed from v.2656  
changed lines
  Added in v.2657

  ViewVC Help
Powered by ViewVC 1.1.30