diff options
author | Michael Scherer <misc@mageia.org> | 2012-01-08 20:25:06 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2012-01-08 20:25:06 +0000 |
commit | 9069208922bd02f233556eb0d2936a9c62d863e0 (patch) | |
tree | da5e5845ce235cb6bbe991adc32978573c2c0342 /deployment/websites/manifests/pkgcpan.pp | |
parent | 75428aced2ec67b0e69a92c01e6ae2529325c2cf (diff) | |
download | puppet-9069208922bd02f233556eb0d2936a9c62d863e0.tar puppet-9069208922bd02f233556eb0d2936a9c62d863e0.tar.gz puppet-9069208922bd02f233556eb0d2936a9c62d863e0.tar.bz2 puppet-9069208922bd02f233556eb0d2936a9c62d863e0.tar.xz puppet-9069208922bd02f233556eb0d2936a9c62d863e0.zip |
split websites module in smaller pieces
Diffstat (limited to 'deployment/websites/manifests/pkgcpan.pp')
-rw-r--r-- | deployment/websites/manifests/pkgcpan.pp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/deployment/websites/manifests/pkgcpan.pp b/deployment/websites/manifests/pkgcpan.pp new file mode 100644 index 00000000..2e306a93 --- /dev/null +++ b/deployment/websites/manifests/pkgcpan.pp @@ -0,0 +1,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", + } + } +} |