Add second requirement for the ROOT.war deployment

Deploying puppet-zanata from scratch can sometimes fail because
wildfly has yet to be unpacked when puppet goes to copy the ROOT.war
into the deployment directory, which does not yet exist. Fix this
issue by adding a requirement for tar to run as well.

Change-Id: Id0229864b64ce39c70b559e1eb5d94822f1988ec
Co-Authored-By: Colleen Murphy <colleen@gazlene.net>
This commit is contained in:
Steve Kowalik 2015-07-15 16:36:54 +10:00
parent 52d2ebc5c2
commit 0ad03dc5e0

View File

@ -47,6 +47,7 @@ class zanata(
) {
$zanata_file = inline_template('<%= File.basename(@zanata_url) %>')
$wildfly_file = inline_template('<%= File.basename(@zanata_wildfly_install_url) %>')
$zanata_hibernate_file = inline_template('<%= File.basename(@zanata_hibernate_url) %>')
$zanata_mojarra_file = inline_template('<%= File.basename(@zanata_mojarra_url) %>')
@ -88,6 +89,7 @@ class zanata(
owner => 'wildfly',
require => [
Exec['download_zanata'],
Exec["tar ${wildfly_file} in /var/tmp"],
]
}