/[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 2718 by misc, Sun Mar 25 12:47:26 2012 UTC revision 2719 by boklm, Thu Apr 5 14:00:10 2012 UTC
# Line 2  class websites::pkgcpan { Line 2  class websites::pkgcpan {
2      include websites::base      include websites::base
3      $vhost = "pkgcpan.$::domain"      $vhost = "pkgcpan.$::domain"
4      $vhostdir = "$websites::base::webdatadir/$vhost"      $vhostdir = "$websites::base::webdatadir/$vhost"
5        $statsdir = "${vhostdir}/stats"
6      $login = 'pkgcpan'      $login = 'pkgcpan'
7      $homedir = "/var/lib/$login"      $homedir = "/var/lib/$login"
8    
# Line 21  class websites::pkgcpan { Line 22  class websites::pkgcpan {
22          group  => $login,          group  => $login,
23      }      }
24    
25      package { 'perl-Module-Packaged-Generator': }      package { ['perl-Module-Packaged-Generator', 'magpie']: }
26    
27      cron { 'update cpanpkg':      cron { 'update cpanpkg':
28          hour    => 23,          hour    => 23,
# Line 34  class websites::pkgcpan { Line 35  class websites::pkgcpan {
35          owner => $login,          owner => $login,
36          group => $login,          group => $login,
37      }      }
38    
39        file { $statsdir:
40            ensure => directory,
41            owner => $login,
42            group => $login,
43        }
44    
45        # http://www.mageia.org/pipermail/mageia-sysadm/2012-March/004337.html
46        cron { 'update pkgcpan stats':
47            hour    => 24,
48            require => [ Package['magpie'], File[$statsdir] ],
49            command => "magpie webstatic -d $statsdir",
50            user    => $login,
51        }
52  }  }

Legend:
Removed from v.2718  
changed lines
  Added in v.2719

  ViewVC Help
Powered by ViewVC 1.1.28