blob: 2e306a93470edaf3a46a0b3b77378149f81f3bd9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
class websites {
class pkgcpan inherits base {
$vhost = "pkgcpan.$domain"
$vhostdir = "$webdatadir/$vhost"
apache::vhost_base { "$vhost":
location => $vhostdir,
options => [ "Indexes" ],
}
file { $vhostdir:
ensure => directory,
}
package { "perl-Module-Packaged-Generator": }
# FIXME do not run as root ( apache or nobody should enough )
cron { "update cpanpkg":
hour => 23,
require => Package['perl-Module-Packaged-Generator'],
command => "pkgcpan -q -f $vhostdir/cpan_Mageia.db -d Mageia",
}
}
}
|