Revision c7a16931
Added by Lukas Zapletal about 10 years ago
extras/packaging/rpm/sources/foreman.cron.d | ||
---|---|---|
FOREMAN_HOME=/usr/share/foreman
|
||
|
||
# Clean up the session entries in the database
|
||
15 23 * * * foreman /usr/sbin/foreman-rake db:sessions:clear >/var/log/foreman/cron.log 2>&1
|
||
15 23 * * * foreman /usr/sbin/foreman-rake db:sessions:clear >>/var/log/foreman/cron.log 2>&1
|
||
|
||
# Send out daily summary
|
||
0 7 * * * foreman /usr/sbin/foreman-rake reports:summarize >/var/log/foreman/cron.log 2>&1
|
||
0 7 * * * foreman /usr/sbin/foreman-rake reports:summarize >>/var/log/foreman/cron.log 2>&1
|
||
|
||
# Expire old reports
|
||
30 7 * * * foreman /usr/sbin/foreman-rake reports:expire >/var/log/foreman/cron.log 2>&1
|
||
30 7 * * * foreman /usr/sbin/foreman-rake reports:expire >>/var/log/foreman/cron.log 2>&1
|
||
|
||
# Collects trends data
|
||
*/30 * * * * foreman /usr/sbin/foreman-rake trends:counter >/var/log/foreman/cron.log 2>&1
|
||
*/30 * * * * foreman /usr/sbin/foreman-rake trends:counter >>/var/log/foreman/cron.log 2>&1
|
||
|
||
# Remove duplicate trends data
|
||
0 8 * * * foreman /usr/sbin/foreman-rake trends:clean >/var/log/foreman/cron.log 2>&1
|
||
0 8 * * * foreman /usr/sbin/foreman-rake trends:clean >>/var/log/foreman/cron.log 2>&1
|
||
|
||
# Only use the following cronjob if you're not using the ENC or ActiveRecord-based storeconfigs
|
||
# Get the node.rb / ENC script and store at /etc/puppet/node.rb:
|
||
# https://github.com/theforeman/puppet-foreman/blob/master/templates/external_node.rb.erb
|
||
# Send facts to Foreman, using the ENC script in a fact pushing only mode
|
||
#*/2 * * * * puppet /usr/bin/ruby193-ruby /etc/puppet/node.rb --push-facts >/var/log/foreman/cron.log 2>&1
|
||
#*/2 * * * * puppet /usr/bin/ruby193-ruby /etc/puppet/node.rb --push-facts >>/var/log/foreman/cron.log 2>&1
|
||
|
||
# Warning: ActiveRecord-based storeconfigs is deprecated from Foreman 1.1 and Puppet 3.0
|
||
# see http://projects.theforeman.org/wiki/foreman/ReleaseNotes#11-stable
|
||
# Only use the following cronjob if you're using ActiveRecord storeconfigs!
|
||
#*/30 * * * * foreman /usr/sbin/foreman-rake puppet:migrate:populate_hosts >/var/log/foreman/cron.log 2>&1
|
||
#*/30 * * * * foreman /usr/sbin/foreman-rake puppet:migrate:populate_hosts >>/var/log/foreman/cron.log 2>&1
|
||
|
Also available in: Unified diff
fixes #5443 - cron.log is now appended to
(cherry picked from commit 3307133a86cb94fdc0f32da740eb85a06f66c760)