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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2469 - (hide annotations) (download)
Mon Feb 27 10:17:53 2012 UTC (9 years, 6 months ago) by dmorgan
File size: 890 byte(s)
Ensure cpan_Mageia.db can be read
1 misc 2394 class websites::pkgcpan {
2     include websites::base
3     $vhost = "pkgcpan.$::domain"
4     $vhostdir = "$websites::base::webdatadir/$vhost"
5 boklm 2467 $pkgcpan_login = 'pkgcpan'
6     $pkgcpan_homedir = "/var/lib/$pkgcpan_login"
7 misc 2203
8 boklm 2467 user { $pkgcpan_login:
9     managehome => true,
10     home => $pkgcpan_homedir,
11     }
12    
13 misc 2394 apache::vhost_base { $vhost:
14     location => $vhostdir,
15     options => [ 'Indexes' ],
16     }
17 misc 2203
18 misc 2394 file { $vhostdir:
19     ensure => directory,
20 boklm 2467 owner => $pkgcpan_login,
21     group => $pkgcpan_login,
22 misc 2394 }
23 misc 2203
24 misc 2394 package { 'perl-Module-Packaged-Generator': }
25 misc 2203
26 misc 2394 cron { 'update cpanpkg':
27     hour => 23,
28     require => Package['perl-Module-Packaged-Generator'],
29     command => "pkgcpan -q -f $vhostdir/cpan_Mageia.db -d Mageia",
30 boklm 2467 user => $pkgcpan_login,
31 misc 2203 }
32 dmorgan 2469
33     file { $vhostdir/cpan_Mageia.db:
34     owner => $pkgcpan_login,
35     group => $pkgcpan_login,
36     }
37    
38 misc 2394 }

Properties

Name Value
svn:keywords "ID Date Rev"

  ViewVC Help
Powered by ViewVC 1.1.28