2015-02-23 13:02 autocommit
This commit is contained in:
@@ -18,19 +18,21 @@ class puppet::puppet-dashboard ($ensure = 'present') {
|
|||||||
repos => 'main',
|
repos => 'main',
|
||||||
}
|
}
|
||||||
|
|
||||||
cron { 'purge-reports':
|
cron {
|
||||||
ensure => $ensure,
|
'purge-reports':
|
||||||
command => 'cd /usr/share/puppet-dashboard && rake RAILS_ENV=production reports:prune upto=14 unit=day',
|
ensure => $ensure,
|
||||||
user => 'www-data',
|
command => 'cd /usr/share/puppet-dashboard && rake RAILS_ENV=production reports:prune upto=14 unit=day',
|
||||||
hour => '23',
|
user => 'www-data',
|
||||||
minute => '2',
|
hour => '23',
|
||||||
monthday => '*/14';
|
minute => '2',
|
||||||
'purge-optimizedb':
|
monthday => '*/14';
|
||||||
ensure => $ensure,
|
|
||||||
command => 'cd /usr/share/puppet-dashboard && rake RAILS_ENV=production db:raw:optimize',
|
'purge-optimizedb':
|
||||||
user => 'www-data',
|
ensure => $ensure,
|
||||||
hour => '23',
|
command => 'cd /usr/share/puppet-dashboard && rake RAILS_ENV=production db:raw:optimize',
|
||||||
minute => '20',
|
user => 'www-data',
|
||||||
monthday => '*/10',
|
hour => '23',
|
||||||
|
minute => '20',
|
||||||
|
monthday => '*/10',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user