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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2691 - (show annotations) (download)
Sun Mar 25 12:47:26 2012 UTC (9 years, 4 months ago) by misc
File size: 866 byte(s)
fix vhost invocation on several module, was missed by last commit, and add the one for redirect_ssl
1 class websites::pkgcpan {
2 include websites::base
3 $vhost = "pkgcpan.$::domain"
4 $vhostdir = "$websites::base::webdatadir/$vhost"
5 $login = 'pkgcpan'
6 $homedir = "/var/lib/$login"
7
8 user { $login:
9 managehome => true,
10 home => $homedir,
11 }
12
13 apache::vhost::base { $vhost:
14 location => $vhostdir,
15 options => [ 'Indexes' ],
16 }
17
18 file { $vhostdir:
19 ensure => directory,
20 owner => $login,
21 group => $login,
22 }
23
24 package { 'perl-Module-Packaged-Generator': }
25
26 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 user => $login,
31 }
32
33 file { "$vhostdir/cpan_Mageia.db":
34 owner => $login,
35 group => $login,
36 }
37 }

Properties

Name Value
svn:keywords "ID Date Rev"

  ViewVC Help
Powered by ViewVC 1.1.28