80 |
url => "http://$web_domain/", |
url => "http://$web_domain/", |
81 |
} |
} |
82 |
} |
} |
83 |
|
|
84 |
|
class pkgcpan inherits base { |
85 |
|
$vhost = "pkgcpan.$domain" |
86 |
|
$vhostdir = "$webdatadir/$vhost" |
87 |
|
|
88 |
|
apache::vhost_base { "$vhost": |
89 |
|
location => $vhostdir, |
90 |
|
options => [ "Indexes" ] |
91 |
|
} |
92 |
|
|
93 |
|
file { $vhostdir: |
94 |
|
ensure => directory, |
95 |
|
} |
96 |
|
|
97 |
|
package { "perl-Module-Packaged-Generator": |
98 |
|
ensure => installed, |
99 |
|
} |
100 |
|
|
101 |
|
cron { "update cpanpkg": |
102 |
|
hour => 23, |
103 |
|
require => Package['perl-Module-Packaged-Generator'], |
104 |
|
command => "pkgcpan -q -f $vhostdir/cpan_Mageia.db -d Mageia", |
105 |
|
} |
106 |
|
} |
107 |
} |
} |