2015-02-23 13:02 autocommit

This commit is contained in:
2015-02-23 13:52:59 +01:00
parent e49255c2b2
commit f6129180cd

View File

@@ -18,13 +18,15 @@ class puppet::puppet-dashboard ($ensure = 'present') {
repos => 'main', repos => 'main',
} }
cron { 'purge-reports': cron {
'purge-reports':
ensure => $ensure, ensure => $ensure,
command => 'cd /usr/share/puppet-dashboard && rake RAILS_ENV=production reports:prune upto=14 unit=day', command => 'cd /usr/share/puppet-dashboard && rake RAILS_ENV=production reports:prune upto=14 unit=day',
user => 'www-data', user => 'www-data',
hour => '23', hour => '23',
minute => '2', minute => '2',
monthday => '*/14'; monthday => '*/14';
'purge-optimizedb': 'purge-optimizedb':
ensure => $ensure, ensure => $ensure,
command => 'cd /usr/share/puppet-dashboard && rake RAILS_ENV=production db:raw:optimize', command => 'cd /usr/share/puppet-dashboard && rake RAILS_ENV=production db:raw:optimize',