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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2394 - (hide annotations) (download)
Fri Feb 10 14:20:15 2012 UTC (12 years, 2 months ago) by misc
Original Path: puppet/deployment/websites/manifests/pkgcpan.pp
File size: 614 byte(s)
make puppet-lint happy and make sure we are future proof for puppet 2.8 ( variable scoping )
1 misc 2394 class websites::pkgcpan {
2     include websites::base
3     $vhost = "pkgcpan.$::domain"
4     $vhostdir = "$websites::base::webdatadir/$vhost"
5 misc 2203
6 misc 2394 apache::vhost_base { $vhost:
7     location => $vhostdir,
8     options => [ 'Indexes' ],
9     }
10 misc 2203
11 misc 2394 file { $vhostdir:
12     ensure => directory,
13     }
14 misc 2203
15 misc 2394 package { 'perl-Module-Packaged-Generator': }
16 misc 2203
17 misc 2394 # FIXME do not run as root ( apache or nobody should enough )
18     cron { 'update cpanpkg':
19     hour => 23,
20     require => Package['perl-Module-Packaged-Generator'],
21     command => "pkgcpan -q -f $vhostdir/cpan_Mageia.db -d Mageia",
22 misc 2203 }
23 misc 2394 }

Properties

Name Value
svn:keywords "ID Date Rev"

  ViewVC Help
Powered by ViewVC 1.1.30