Ensure more correct ordering

There were a few parts of this that could get out of order; ensure
more correct ordering.

Change-Id: Ic010bb70915d37ce55e9f5531a2c5baa15808595
This commit is contained in:
Ian Wienand 2018-04-09 14:57:26 +10:00
parent dc2958f424
commit 361721d8fb
1 changed files with 9 additions and 4 deletions

View File

@ -96,18 +96,18 @@ class askbot::install (
exec { 'pip-requirements-install':
path => [ '/bin', '/sbin' , '/usr/bin', '/usr/sbin', '/usr/local/bin' ],
command => "/usr/askbot-env/bin/pip install -q -r ${dist_root}/askbot/askbot_requirements.txt",
command => "/usr/askbot-env/bin/pip install -r ${dist_root}/askbot/askbot_requirements.txt",
cwd => "${dist_root}/askbot",
logoutput => on_failure,
subscribe => Git['askbot'],
refreshonly => true,
require => Python::Virtualenv['/usr/askbot-env'],
}
python::pip { 'stopforumspam':
ensure => present,
pkgname => 'stopforumspam',
virtualenv => '/usr/askbot-env',
require => Python::Virtualenv['/usr/askbot-env'],
require => Exec[ 'pip-requirements-install' ],
}
include ::httpd::mod::wsgi
@ -119,7 +119,12 @@ class askbot::install (
logoutput => on_failure,
subscribe => Git['askbot'],
refreshonly => true,
require => Exec[ 'pip-requirements-install'],
require => [
Python::Virtualenv['/usr/askbot-env'],
Exec[ 'pip-requirements-install' ],
Python::Pip[ 'stopforumspam' ],
Python::Pip[ 'captcha' ],
],
}
}