From 0ad03dc5e0643f40eecb78349f36a8a215cfb4eb Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 15 Jul 2015 16:36:54 +1000 Subject: [PATCH] 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 --- manifests/init.pp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/manifests/init.pp b/manifests/init.pp index 4a7e902..fa8acab 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -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"], ] }