Restart apache and celeryd on upgrade

When upgrading, after the migrate exec completes, notify the apache2
and askbot-celeryd services so they will be restarted.

Change-Id: I0a7f3987d782c52e85aa2f87186d2beb367d5b6b
This commit is contained in:
Jeremy Stanley 2017-01-04 16:32:16 +00:00
parent 9898406b14
commit bf2ac102e2
1 changed files with 1 additions and 1 deletions

View File

@ -90,10 +90,10 @@ class askbot::site::config (
refreshonly => true,
}
# TODO: end of chain: notify httpd, celeryd
exec { 'askbot-migrate':
cwd => "${site_root}/config",
command => '/usr/askbot-env/bin/python manage.py migrate --noinput',
notify => [Service['askbot-celeryd'], Service['apache2'] ],
require => Exec['askbot-syncdb'],
subscribe => [Git['askbot'], File["${site_root}/config/settings.py"] ],
refreshonly => true,