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