Install underlay package for moin 1.9

This commit is contained in:
Ossi Salmi 2012-08-01 10:16:50 +03:00
parent 74e0a5827e
commit 811b7c0884

View file

@ -246,6 +246,18 @@ class wiki::collab::base {
require => File["/srv/wikis/collab/underlay"], require => File["/srv/wikis/collab/underlay"],
before => Exec["collab-create collab collab"], before => Exec["collab-create collab collab"],
} }
if $wiki::moin::moin_package =~ /^moin-1\.9/ {
$underlay_package = "/srv/wikis/collab/underlay/pages/LanguageSetup/attachments/English--all_pages.zip"
exec { "collab-install-underlay":
user => "collab",
path => "/bin:/usr/bin:/sbin:/usr/sbin",
environment => "PYTHONPATH=/srv/wikis/collab/wikis/collab/config",
command => "/bin/sh -c 'umask 007; python ${::pythonsitedir}/MoinMoin/packages.py i ${underlay_package}'",
refreshonly => true,
subscribe => Exec["collab-copy-underlay"],
require => Exec["collab-account-create -f -r collab"]
}
}
file { "/srv/wikis/collab/config/collabfarm.py": file { "/srv/wikis/collab/config/collabfarm.py":
ensure => present, ensure => present,