From 9201b62276974bee29581c4f7f923bbfed9d57e2 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Wed, 4 Jan 2017 16:35:20 +0000 Subject: [PATCH] Don't run syncdb or migrate until after install The syncdb and migrate execs need an upgraded Askbot package installed in the venv before they're run, so indicate this dependency relationship accordingly. Change-Id: Ibf191682e238fcf5dcebc5a5c2c50d8b63913153 --- manifests/install.pp | 1 + 1 file changed, 1 insertion(+) diff --git a/manifests/install.pp b/manifests/install.pp index f50e36e..a8ae6c9 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -117,6 +117,7 @@ class askbot::install ( cwd => "${dist_root}/askbot", command => '/usr/askbot-env/bin/pip install .', logoutput => on_failure, + before => [Exec['askbot-syncdb'], Exec['askbot-migrate'] ], subscribe => Git['askbot'], refreshonly => true, require => Exec[ 'pip-requirements-install'],