Install underlay package for moin 1.9
This commit is contained in:
parent
74e0a5827e
commit
811b7c0884
1 changed files with 12 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Reference in a new issue