SHELL=/bin/sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin
HOME=/var/log
PKG_PATH=https://cdn.openbsd.org/%m:https://repo-openbsd.minmaxiste.com/%v/packages/%a
#
#minute	hour	mday	month	wday	command
#
# rotate log files every hour, if necessary
0 * * * * /usr/bin/newsyslog
# send log file notifications, if necessary
#1-59	*	*	*	*	/usr/bin/newsyslog -m
#
# do daily/weekly/monthly maintenance
30 1 * * * /bin/sh /etc/daily
30 3 * * 6 /bin/sh /etc/weekly
30 5 1 * * /bin/sh /etc/monthly
#0	*	*	*	*	sleep $((RANDOM \% 2048)) && /usr/libexec/spamd-setup

# Update packages
0 3 * * * /usr/sbin/pkg_add -u > /dev/null
# Apply syspatch
0 2 * * * /usr/sbin/syspatch
# pantin-apply; send errors to /dev/null until this is
# fixed: https://github.com/puppetlabs/facter/issues/2742
* * * * * /usr/local/sbin/pantin-apply 2>&1 | grep -v 'Unable to getenv for pid 1'
# puppet-cleanup-reports
0 3 * * * find /var/puppetlabs/puppet/cache/reports -type f -mtime +7 -delete
