summaryrefslogtreecommitdiff
path: root/puppet/modules/site_webapp/manifests
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2015-04-08 13:58:41 -0700
committerelijah <elijah@riseup.net>2015-04-08 13:58:41 -0700
commite3cfc2e1e7055ce2640fcce5bf810d6bd7930d2f (patch)
tree1ebbfdfa024941e04992eb2daecf22fda014f5dc /puppet/modules/site_webapp/manifests
parentdbe413c969a54be0a91fe1de1930eb20d885deb6 (diff)
move rotated db creation to site_couchdb and fix rotated db tests
Diffstat (limited to 'puppet/modules/site_webapp/manifests')
-rw-r--r--puppet/modules/site_webapp/manifests/init.pp15
1 files changed, 1 insertions, 14 deletions
diff --git a/puppet/modules/site_webapp/manifests/init.pp b/puppet/modules/site_webapp/manifests/init.pp
index 5071d9bc..ea64048b 100644
--- a/puppet/modules/site_webapp/manifests/init.pp
+++ b/puppet/modules/site_webapp/manifests/init.pp
@@ -50,7 +50,7 @@ class site_webapp {
owner => 'leap-webapp',
group => 'leap-webapp',
require => [ User['leap-webapp'], Group['leap-webapp'] ],
- notify => [ Exec['bundler_update'], Exec['rotate_dbs'] ]
+ notify => Exec['bundler_update']
}
exec { 'bundler_update':
@@ -67,19 +67,6 @@ class site_webapp {
notify => Service['apache'];
}
- # this only needs to be called before the first time the web app is run.
- # after that, the cron job will take care of running db:rotate regularly.
- exec { 'rotate_dbs':
- cwd => '/srv/leap/webapp',
- command => '/bin/bash -c "RAILS_ENV=production /usr/bin/bundle exec rake db:rotate"',
- user => 'leap-webapp',
- timeout => 600,
- refreshonly => true,
- require => [
- Vcsrepo['/srv/leap/webapp'],
- Class['site_config::ruby::dev']];
- }
-
#
# NOTE: in order to support a webapp that is running on a subpath and not the
# root of the domain assets:precompile needs to be run with