/[adm]/puppet/deployment/websites/manifests/pkgcpan.pp
ViewVC logotype

Diff of /puppet/deployment/websites/manifests/pkgcpan.pp

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

revision 2203 by misc, Sun Jan 8 20:25:06 2012 UTC revision 2394 by misc, Fri Feb 10 14:20:15 2012 UTC
# Line 1  Line 1 
1  class websites {  class websites::pkgcpan {
2      class pkgcpan inherits base {      include websites::base
3          $vhost = "pkgcpan.$domain"      $vhost = "pkgcpan.$::domain"
4          $vhostdir = "$webdatadir/$vhost"      $vhostdir = "$websites::base::webdatadir/$vhost"
5    
6          apache::vhost_base { "$vhost":      apache::vhost_base { $vhost:
7              location => $vhostdir,          location => $vhostdir,
8              options => [ "Indexes" ],          options  => [ 'Indexes' ],
9          }                      }
10    
11          file { $vhostdir:      file { $vhostdir:
12              ensure => directory,          ensure => directory,
13          }      }
14    
15          package { "perl-Module-Packaged-Generator": }      package { 'perl-Module-Packaged-Generator': }
16    
17          # FIXME do not run as root ( apache or nobody should enough )      # FIXME do not run as root ( apache or nobody should enough )
18          cron { "update cpanpkg":      cron { 'update cpanpkg':
19              hour => 23,          hour    => 23,
20              require => Package['perl-Module-Packaged-Generator'],          require => Package['perl-Module-Packaged-Generator'],
21              command => "pkgcpan -q -f $vhostdir/cpan_Mageia.db -d Mageia",          command => "pkgcpan -q -f $vhostdir/cpan_Mageia.db -d Mageia",
         }  
22      }      }
23  }  }

Legend:
Removed from v.2203  
changed lines
  Added in v.2394

  ViewVC Help
Powered by ViewVC 1.1.30