/[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 2203 - (show annotations) (download)
Sun Jan 8 20:25:06 2012 UTC (12 years, 2 months ago) by misc
File size: 681 byte(s)
split websites module in smaller pieces
1 class websites {
2 class pkgcpan inherits base {
3 $vhost = "pkgcpan.$domain"
4 $vhostdir = "$webdatadir/$vhost"
5
6 apache::vhost_base { "$vhost":
7 location => $vhostdir,
8 options => [ "Indexes" ],
9 }
10
11 file { $vhostdir:
12 ensure => directory,
13 }
14
15 package { "perl-Module-Packaged-Generator": }
16
17 # 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 }
23 }
24 }

Properties

Name Value
svn:keywords "ID Date Rev"

  ViewVC Help
Powered by ViewVC 1.1.30