foreman-packaging/debian/wheezy/foreman/foreman.cron.d @ 073dd8ff
82a5ca11 | Greg Sutcliffe | SHELL=/bin/sh
|
|
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
|||
RAILS_ENV=production
|
|||
FOREMAN_HOME=/usr/share/foreman
|
|||
# Clean up the session entries in the database
|
|||
05142326 | Dmitri Dolguikh | 15 23 * * * foreman cd ${FOREMAN_HOME} && /usr/sbin/foreman-rake db:sessions:clear >/var/log/foreman/cron.log 2>&1
|
|
82a5ca11 | Greg Sutcliffe | ||
# Send out daily summary
|
|||
05142326 | Dmitri Dolguikh | 0 7 * * * foreman cd ${FOREMAN_HOME} && /usr/sbin/foreman-rake reports:summarize >/var/log/foreman/cron.log 2>&1
|
|
82a5ca11 | Greg Sutcliffe | ||
# Expire old reports
|
|||
05142326 | Dmitri Dolguikh | 30 7 * * * foreman cd ${FOREMAN_HOME} && /usr/sbin/foreman-rake reports:expire >/var/log/foreman/cron.log 2>&1
|
|
82a5ca11 | Greg Sutcliffe | ||
# Collects trends data
|
|||
05142326 | Dmitri Dolguikh | */30 * * * * foreman cd ${FOREMAN_HOME} && /usr/sbin/foreman-rake trends:counter >/var/log/foreman/cron.log 2>&1
|
|
82a5ca11 | Greg Sutcliffe | ||
073dd8ff | Andreas Paul | # Remove duplicate trends data
|
|
0 8 * * * foreman cd ${FOREMAN_HOME} && /usr/sbin/foreman-rake trends:clean >/var/log/foreman/cron.log 2>&1
|
|||
82a5ca11 | Greg Sutcliffe | # 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 /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!
|
|||
05142326 | Dmitri Dolguikh | #*/30 * * * * foreman cd ${FOREMAN_HOME} && /usr/sbin/foreman-rake puppet:migrate:populate_hosts >/var/log/foreman/cron.log 2>&1
|