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

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

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

revision 2241 by misc, Fri Aug 19 12:31:35 2011 UTC revision 2242 by misc, Sat Jan 14 19:26:11 2012 UTC
# Line 1  Line 1 
1  class gitweb {  class gitweb {
2      package { 'gitweb':      package { 'gitweb': }
         ensure => installed,  
     }  
3      # TODO some rpm may be needed ( like perl-FCGI )      # TODO some rpm may be needed ( like perl-FCGI )
4      # git >= 17.2 is needed for fastcgi support      # git >= 17.2 is needed for fastcgi support
5    
6      # TODO fix git rpm to show the css, the js, and others missing file      # TODO fix git rpm to show the css, the js, and others missing file
7    
8      file { 'gitweb.conf':      file { '/etc/gitweb.conf':
         ensure => present,  
         path => '/etc/gitweb.conf',  
9          content => template('gitweb/gitweb.conf'),          content => template('gitweb/gitweb.conf'),
10          notify => Service['apache'],          notify => Service['apache'],
11          require => Package['gitweb']          require => Package['gitweb'],
12      }      }
13    
14      file { 'webapps.d/gitweb.conf':      apache::webapp_other { 'gitweb':
15          ensure => present,          webapp_file => 'gitweb/webapp.conf',
         path => '/etc/httpd/conf/webapps.d/gitweb.conf',  
         content => template('gitweb/webapp.conf'),  
         notify => Service['apache'],  
         require => Package['apache'],  
16      }      }
17        
18      file { 'gitweb.wrapper.sh':      local_script { 'gitweb.wrapper.sh':
         ensure => present,  
         mode => 755,  
         path => '/usr/local/bin/gitweb.wrapper.sh',  
19          content => template('gitweb/wrapper.sh'),          content => template('gitweb/wrapper.sh'),
20          notify => Service['apache'],          notify => Service['apache'],
21      }      }

Legend:
Removed from v.2241  
changed lines
  Added in v.2242

  ViewVC Help
Powered by ViewVC 1.1.30