From a467ab5057b9bfff94fde49c824d2879bb73ccba Mon Sep 17 00:00:00 2001 From: Michael Krotscheck Date: Fri, 6 Jun 2014 13:30:26 -0700 Subject: [PATCH] StoryBoard module bounces apache on update Apache doesn't reload python libs until a reboot, so our strategy of reloading storyboard wasn't effective. This removes the old storyboard-reload command and replaces it with a straight http service restart. Change-Id: I1f2fb736277c3ca39b513695e42ef4860267737f --- modules/storyboard/manifests/init.pp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/modules/storyboard/manifests/init.pp b/modules/storyboard/manifests/init.pp index 365fa62c18..c492a00389 100644 --- a/modules/storyboard/manifests/init.pp +++ b/modules/storyboard/manifests/init.pp @@ -69,7 +69,7 @@ class storyboard ( path => '/usr/local/bin:/usr/bin:/bin/', refreshonly => true, subscribe => Vcsrepo['/opt/storyboard'], - notify => Exec['storyboard-reload'], + notify => Service['httpd'], require => Class['pip'], } @@ -82,7 +82,7 @@ class storyboard ( owner => 'storyboard', mode => '0400', content => template('storyboard/storyboard.conf.erb'), - notify => Exec['storyboard-reload'], + notify => Service['httpd'], require => [ File['/etc/storyboard'], User['storyboard'], @@ -151,12 +151,6 @@ class storyboard ( require => User['storyboard'], } - exec { 'storyboard-reload': - command => 'touch /usr/local/lib/python2.7/dist-packages/storyboard/api/app.wsgi', - path => '/usr/local/bin:/usr/bin:/bin/', - refreshonly => true, - } - # START storyboard-webclient $tarball = 'storyboard-webclient.tar.gz'